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
If you have react-select set up with 'grouped' options, it's a little odd that the 'group count' remains the same when options from that group have been selected.
It's particularly noticeable if isMulti is enabled - when you can end up with something like this where it show the 'Flavours' count as 4 despite there being only one flavour remaining in that group:
Appreciate that this might well be the desired behaviour - but as things stand I don't think there's any (easy) way to do this by using something like formatGroupLabel since the only data made available to it is OptionsType - which doesn't allow for any way of finding out how many options in that group remain unselected.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If you have
react-select
set up with 'grouped' options, it's a little odd that the 'group count' remains the same when options from that group have been selected.It's particularly noticeable if
isMulti
is enabled - when you can end up with something like this where it show the 'Flavours' count as 4 despite there being only one flavour remaining in that group:Appreciate that this might well be the desired behaviour - but as things stand I don't think there's any (easy) way to do this by using something like
formatGroupLabel
since the only data made available to it isOptionsType
- which doesn't allow for any way of finding out how many options in that group remain unselected.Beta Was this translation helpful? Give feedback.
All reactions