mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
site: fix #5239
This commit is contained in:
parent
977aa62d94
commit
2aae84f375
@ -49,6 +49,7 @@ export default class Header extends React.Component {
|
||||
inputValue: '',
|
||||
}, () => {
|
||||
router.push({ pathname: utils.getLocalizedPathname(`${value}/`, intl.locale === 'zh-CN') });
|
||||
document.querySelector('#search-box .ant-select-search__field').blur();
|
||||
});
|
||||
}
|
||||
|
||||
@ -212,7 +213,6 @@ export default class Header extends React.Component {
|
||||
<Select
|
||||
combobox
|
||||
value={inputValue}
|
||||
dropdownStyle={{ display: inputValue ? 'block' : 'none' }}
|
||||
dropdownClassName="component-select"
|
||||
placeholder={searchPlaceholder}
|
||||
optionLabelProp="data-label"
|
||||
|
Loading…
Reference in New Issue
Block a user