Skip to content

Commit c2ac54d

Browse files
committed
browser: accessibility: fix no click, close dropdown combobox
Change-Id: I5a459164174ac4ba4cab42822772e3fb4a3dd711 Signed-off-by: Henry Castro <[email protected]>
1 parent 8ab53b0 commit c2ac54d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

browser/src/control/jsdialog/Widget.Combobox.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,13 @@ JSDialog.combobox = function (parentContainer, data, builder) {
320320
content.value = text;
321321
};
322322

323+
builder.map.on('jsdialog', function (e) {
324+
if (e.data.jsontype === 'dialog'
325+
&& e.data.action === 'close'
326+
&& e.data.id === container.id + '-dropdown') {
327+
container.setAttribute('aria-expanded', false);
328+
}
329+
});
330+
323331
return false;
324332
};

0 commit comments

Comments
 (0)