Allow events in read only TextArea (#119)

Fix default filtering strategy to correctly allow events for text area elements when is set to read only.
pull/120/head
Sebastian Kreft 5 years ago committed by 小弟调调™
parent a76a1011b9
commit 08368e075d

@ -34,7 +34,6 @@ function filter(event) {
// ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select> // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
if ( if (
target.isContentEditable || target.isContentEditable ||
tagName === 'TEXTAREA' ||
((tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) ((tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly)
) { ) {
flag = false; flag = false;

Loading…
Cancel
Save