mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 00:51:29 +03:00
5f0ecc588f
Fixes https://github.com/vector-im/riot-web/issues/3714 https://github.com/vector-im/riot-web/issues/3714#issuecomment-297460620 : > It's as if there are two dialogs and as one closes, the other one appears. For some reason matrix-org/matrix-react-sdk#822 is causing this. > I've realised it's because the `priorActiveElement` is probably the button that opened the dialog. If this is focused and the enter key is released, this triggers a keyPress which fires once the dialog has closed and the button has been focused 😬 the BaseDialog only calls stopPropagation _onKeyDown. The soln. was to submit the dialog as finished `onKeyUp`. This means the `priorActiveElement` is focussed after any key events that should be associated with the dialog. |
||
---|---|---|
.. | ||
BaseDialog.js | ||
ChatCreateOrReuseDialog.js | ||
ChatInviteDialog.js | ||
ConfirmRedactDialog.js | ||
ConfirmUserActionDialog.js | ||
DeactivateAccountDialog.js | ||
ErrorDialog.js | ||
InteractiveAuthDialog.js | ||
NeedToRegisterDialog.js | ||
QuestionDialog.js | ||
SessionRestoreErrorDialog.js | ||
SetDisplayNameDialog.js | ||
TextInputDialog.js | ||
UnknownDeviceDialog.js |