Files
ThreadNet-Web/src
Luke Barnard 5f0ecc588f Fix dialog reappearing after hitting Enter
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.
2017-04-26 17:37:52 +01:00
..
2017-04-25 18:01:56 +01:00
2017-03-22 12:00:16 +00:00
2017-03-12 22:59:41 +00:00
2017-02-21 14:50:09 +00:00
2017-04-15 12:13:29 +01:00
2017-03-14 14:37:18 +00:00
2017-03-14 11:50:13 +00:00
2017-04-10 10:09:26 +01:00
2017-03-27 09:42:04 +01:00
2017-04-10 10:09:26 +01:00
2017-02-09 10:30:06 +00:00