0
0
Fork 0

Improve dropdown menu keyboard navigation (#11491)

* Allow selecting menu items with the space bar in status dropdown menus

* Fix modals opened by keyboard navigation being immediately closed

* Fix menu items triggering modal actions

* Add Tab trapping inside dropdown menu

* Give focus back to last focused element when status dropdown menu closes
This commit is contained in:
ThibG 2019-08-06 11:59:46 +02:00 committed by Eugen Rochko
parent 5c73746b69
commit a12f1a0baf
4 changed files with 30 additions and 21 deletions

View file

@ -9,8 +9,9 @@ export function openModal(type, props) {
};
};
export function closeModal() {
export function closeModal(type) {
return {
type: MODAL_CLOSE,
modalType: type,
};
};