I have the following code:
Enabled = (id) => {
let removal = null;
if (!this.props.disabled) {
removal = (
<span
className="chipRemove"
onClick={() => this.onDelete(id)}
>
x
</span>)
;
}
return removal;
}
it works well, but linter is giving me:
jsx-a11y/no-static-element-interactions
How can I solve this error (according to jsx-a11y
)?