You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the current MultiSelect component doesn't allow much customization with the selected content in terms of listing them separated by commas for example, and keep the MultiSelect Dropdown with the same height size, and number of lines. The UI I want to achieve is something like this:
I tried with the renderSelectedItem but it didn't work as expected, so I decided to use the placeholder prop to achieve this UI, it worked but when the placeholder content is bigger than the Dropdown it breaks to a second line and I don't want it.
So, I was checking the lib code, and the selectedTextProps is not used for MultiSelect and I decided to add it as a patch to the library. If anyone else has this issue I'm posting the patch solution below:
HI Eduardo, good catch on this issue. I am trying what you did using your patch. The new props that has been patched however is not being shown when using the component. Can you please advise on this?
Hi, the current MultiSelect component doesn't allow much customization with the selected content in terms of listing them separated by commas for example, and keep the MultiSelect Dropdown with the same height size, and number of lines. The UI I want to achieve is something like this:
I tried with the
renderSelectedItem
but it didn't work as expected, so I decided to use theplaceholder
prop to achieve this UI, it worked but when the placeholder content is bigger than the Dropdown it breaks to a second line and I don't want it.So, I was checking the lib code, and the
selectedTextProps
is not used forMultiSelect
and I decided to add it as a patch to the library. If anyone else has this issue I'm posting the patch solution below:The file should be placed inside the
patch
folder in the root of your project:react-native-element-dropdown+2.9.0.patch
PS: I didn't have much time to create a PR for this, so feel free to create a PR with this solution.
The text was updated successfully, but these errors were encountered: