Skip to content

Commit

Permalink
Allow events in read only TextArea (#119)
Browse files Browse the repository at this point in the history
Fix default filtering strategy to correctly allow events for text area elements when is set to read only.
  • Loading branch information
sk- authored and jaywcjlove committed Nov 22, 2019
1 parent a76a101 commit 08368e0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function filter(event) {
// ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
if (
target.isContentEditable ||
tagName === 'TEXTAREA' ||
((tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly)
) {
flag = false;
Expand Down

0 comments on commit 08368e0

Please sign in to comment.