dialog icon indicating copy to clipboard operation
dialog copied to clipboard

fix: invalid autofocus

Open acyza opened this issue 1 year ago • 5 comments

fix https://github.com/ant-design/ant-design/issues/41239 link #350 react中的autoFocus似乎是react模拟的,并非原生的autofocus。https://github.com/facebook/react/blob/main/packages/react-dom-bindings/src/client/ReactDOMHostConfig.js#L522-L528 rc-potral默认的挂载点似乎不太稳定,有可能虚拟dom渲染的时候挂载点还没添加到页面,或者添加后又被移除(visible为false的情况),导致autofocus失效。

acyza avatar Mar 20 '23 19:03 acyza