Skip to content

Commit

Permalink
fix(QSelect): ignore most key commands when QSelect is not editable #…
Browse files Browse the repository at this point in the history
…15808 (#15819)

* fix(QSelect): ignore most key commands when QSelect is not editable #15808

* Update QSelect.js

---------

Co-authored-by: Razvan Stoenescu <razvan.stoenescu@gmail.com>
  • Loading branch information
pdanpdan and rstoenescu committed May 12, 2023
1 parent dab84d9 commit 63f5c8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/components/select/QSelect.js
Expand Up @@ -724,7 +724,11 @@ export default createComponent({
return
}

if (e.target === void 0 || e.target.id !== state.targetUid.value) { return }
if (
e.target === void 0
|| e.target.id !== state.targetUid.value
|| state.editable.value !== true
) { return }

// down
if (
Expand Down

0 comments on commit 63f5c8b

Please sign in to comment.