Open florian-sanders-cc opened 1 month ago
We have faced several cases with prop names that clashed with native properties / attributes.
For instance, exposing a prop title on a web component is not a good idea because it will generate a tooltip (native title behavior).
title
Disabled prop resets the focus when set to true with Chrome (see #1124).
We need to :
contributing.md
I agree on this!
I had a look at this project https://github.com/43081j/eslint-plugin-wc and I don't see such a rule. I wonder how we will list and maintain all forbidden names.
Context
We have faced several cases with prop names that clashed with native properties / attributes.
For instance, exposing a prop
title
on a web component is not a good idea because it will generate a tooltip (nativetitle
behavior).Disabled prop resets the focus when set to true with Chrome (see #1124).
We need to :
contributing.md
docs,