Fix focus and simplify popup-opener menu items

Introduce a HmenuItemPopupSpawner component that takes care of reacting
to onTriggered signals and calling the utils.makePopup() function.

The combination of this new component used in HMenu to open a HPopup
now correctly takes and restore focus to the right element when closed.
This commit is contained in:
miruka
2019-12-20 10:29:45 -04:00
parent d9b7118f45
commit 9bd739a0db
9 changed files with 85 additions and 58 deletions

10
TODO.md
View File

@@ -48,13 +48,13 @@
## Issues
- invisible uploaded mxc images?
- first undecryptable message
- Join button 502
- Leave box button focus
- `EventImage`s for `m.image` sometimes appear broken, can be made normal
by switching to another room and coming back
- First sent message in E2E room is sometimes undecryptable
- Handle matrix errors for accept/decline invite buttons and other
- Pause upload, switch to other room, then come back → wrong state displayed
- Pausing uploads doesn't work well, servers end up dropping the connection
- Pause upload, switch to other room, then come back, wrong state displayed
- In the "Leave me" room, "join > Hi > left" aren't combined
- When selecting text and scrolling up, selection stops working after a while