Skip to content

Commit

Permalink
browser: accessibility: fix no click, close dropdown combobox
Browse files Browse the repository at this point in the history
Change-Id: I5a459164174ac4ba4cab42822772e3fb4a3dd711
Signed-off-by: Henry Castro <hcastro@collabora.com>
  • Loading branch information
hcvcastro committed Jan 30, 2025
1 parent 580bd1e commit 189dfcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions browser/src/control/jsdialog/Widget.Combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,13 @@ JSDialog.combobox = function (parentContainer, data, builder) {
content.value = text;
};

builder.map.on('jsdialog', function (e) {
if (e.data.jsontype === 'dialog'
&& e.data.action === 'close'
&& e.data.id === container.id + '-dropdown') {
container.setAttribute('aria-expanded', false);
}
});

return false;
};

0 comments on commit 189dfcd

Please sign in to comment.