Skip to content

Commit

Permalink
fix: Ignore keypressed in select elements that support keyboard data …
Browse files Browse the repository at this point in the history
…input. #193
  • Loading branch information
jaywcjlove committed May 18, 2020
1 parent 2123be9 commit 0bfabfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Expand Up @@ -33,7 +33,7 @@ function filter(event) {
// ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
if (
target.isContentEditable
|| ((tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly)
|| ((tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') && !target.readOnly)
) {
flag = false;
}
Expand Down

0 comments on commit 0bfabfa

Please sign in to comment.