I couldn't find any information on why would classNamePrefix has no default value.
When the user does not define classNamePrefix - the component-specific classes are not used (e.g - *__multi-value_remove).
Here's a sandbox of it.
This issue related somehow to #4123.
I think that those classes are great to have by default, and this means the user will need 0 config in order to get a specific selector for the internal components.
My use case is this PR for the react-select-event that allows us to find specific components not basing on the type of the component (svg. What if react-select will use a different icon in the future?).
In order to resolve this, all we need is just add here the default value for the classNamePrefix (I suggest react-select).
I can create the PR, and I just ant to know if there's any unseen backward compatibility effect on the user.
I created a PR for react-select-event that uses the internal class names, but it's awaiting this issue to resolve.
I couldn't find any information on why would
classNamePrefixhas no default value.When the user does not define
classNamePrefix- the component-specific classes are not used (e.g -*__multi-value_remove).Here's a sandbox of it.
This issue related somehow to #4123.
I think that those classes are great to have by default, and this means the user will need 0 config in order to get a specific selector for the internal components.
My use case is this PR for the
react-select-eventthat allows us to find specific components not basing on the type of the component (svg. What ifreact-selectwill use a different icon in the future?).In order to resolve this, all we need is just add here the default value for the
classNamePrefix(I suggestreact-select).I can create the PR, and I just ant to know if there's any unseen backward compatibility effect on the user.
I created a PR for
react-select-eventthat uses the internal class names, but it's awaiting this issue to resolve.