test()

in src/rules/no-onchange.js [17:25]


    test(tagName, props) {
        const hidden = hiddenFromAT(props);
        const disabled = trueish(props, 'aria-disabled');
        const readOnly = trueish(props, 'aria-readonly');
        const onChange = listensTo(props, 'onChange');
        const onBlur = listensTo(props, 'onBlur');

        return hidden || disabled || readOnly || !onChange || (onChange && onBlur);
    }