I have an input field in my twig block. Now when I check to see if the event is cancelable, it returns false.
Is there any way to make it come true? I've tried the 'change' event, but it's also false.
this._dataField.addEventListener('input', ()=> {
console.log('input');
this._onChange();
}
_onChange(event) {
console.log('onChange called');
var x = event.cancelable;
console.log(x);
}
The input event is not cancelable according to documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event