typesnippet / antd-phone-input

Advanced, highly customizable phone input component for Ant Design.
https://playground.typesnippet.org/antd-phone-input-5.x/
MIT License
51 stars 10 forks source link

🐛 Bug Report - The `prefixCls` doesn't make sense #80

Closed ArtyomVancyan closed 4 months ago

ArtyomVancyan commented 4 months ago

Bug description

Changing the prefixCls doesn't make sense when it's provided via ConfigProvider.

<ConfigProvider prefixCls="custom-prefix">
  <PhoneInput enableSearch/>
</ConfigProvider>

OR

<PhoneInput prefixCls="custom-prefix" enableSearch/>

EDIT: The direct property doesn't override the class prefixes of the inner components, so rather, don't change it, keeping work with default behavior.