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
Bug: Icons are overridden if multiple selects are displayed on the same page
Current State
A component renders a form with multiple SectionedMultiSelect
Some selects receive the prop iconRenderer some don't (even more problematic if there are different iconRenderers)
The iconRenderer of the component that is constructed last is applied to all SectionedMultiSelect that are rendered
Desired State
A component renders a form with multiple SectionedMultiSelect
The iconRenderer of the select is only applied to the component that receives it as prop
Info
In line 22, icon is defined globally. The constructor of the select assigns the iconRenderer or the MaterialIcons to the Icon variable.
This icon variable is assigned multiple times if multiple selects are rendered.
The text was updated successfully, but these errors were encountered:
bmaximilian
added a commit
to bmaximilian/react-native-sectioned-multi-select
that referenced
this issue
Sep 23, 2020
Bug: Icons are overridden if multiple selects are displayed on the same page
Current State
iconRenderer
some don't (even more problematic if there are differenticonRenderer
s)iconRenderer
of the component that is constructed last is applied to all SectionedMultiSelect that are renderedDesired State
iconRenderer
of the select is only applied to the component that receives it as propInfo
In line 22, icon is defined globally. The constructor of the select assigns the
iconRenderer
or the MaterialIcons to the Icon variable.This icon variable is assigned multiple times if multiple selects are rendered.
The text was updated successfully, but these errors were encountered: