Removing declarations

pull/4788/head
André Lins 5 years ago
parent a9b5b0a929
commit 441525e913

@ -508,10 +508,7 @@ export default class Element extends Node {
} }
if (a11y_no_onchange.has(this.name)) { if (a11y_no_onchange.has(this.name)) {
const change_handler = handlers_map.get('change'); if (handlers_map.has('change') && !handlers_map.has('blur')) {
const blur_handler = handlers_map.get('blur');
if (change_handler && !blur_handler) {
component.warn(this, { component.warn(this, {
code: `a11y-no-onchange`, code: `a11y-no-onchange`,
message: `A11y: onBlur must be used instead of onchange, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users.` message: `A11y: onBlur must be used instead of onchange, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users.`

Loading…
Cancel
Save