We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f45197a commit ebf24bcCopy full SHA for ebf24bc
.gitignore
@@ -29,7 +29,6 @@ coverage
29
yarn.lock
30
es/
31
package-lock.json
32
-src/*.js
33
src/*.map
34
.prettierrc
35
tslint.json
src/Header.jsx
@@ -22,10 +22,11 @@ class Header extends Component {
22
// requestAnimationFrame will cause jump on rc-trigger 3.x
23
// https://github.com/ant-design/ant-design/pull/19698#issuecomment-552889571
24
// use setTimeout can resolve it
25
+ // 60ms is a magic timeout to avoid focusing before dropdown reposition correctly
26
this.timeout = setTimeout(() => {
27
this.refInput.focus();
28
this.refInput.select();
- });
+ }, 60);
}
0 commit comments