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 - Uncontrol Width Country Select Dropdown #107

Open MHasankhan opened 3 days ago

MHasankhan commented 3 days ago

Bug description

I used this component in our app, Facing issue to control width of phoneNumber Country Selection Dropdown, If i"ll use classe 'ant-select-dropdown', it'll break other select dropdowns, I have attached the screen shots. Suggestion: Add popupClassName and dropdownStyles props in PhoneInput, as antd already provided this prop on Select component

Reproduction URL

No response

Reproduction steps

1- Open Country Code Selection dropdown 2-Popup getting width 62px, which breaking the styles

Screenshots

image

Logs

No response

Browsers

Firefox, Chrome, Safari, Microsoft Edge, Opera

OS

Mac

ArtyomVancyan commented 2 days ago

Hi @MHasankhan, I have two questions:

P.S. The dropdownRender option has been added after noticing a similar issue in the Storybook environment.

MHasankhan commented 1 day ago

@ArtyomVancyan yes I tried with dropdownRender, but same issue appeared, because dropdown actually the child of ant-select-dropdown, Unfortunately I don't have minimal application repsository url, as its the private repo

ArtyomVancyan commented 1 day ago

Okay, you can either create a public repo where the problem with styles is reproduced and share the link so I can fix the problem, or you can contribute to the project and recommend your changes. I will review your pull request and release the changes. Please follow the steps below: