Select: Fix width bug when maxVisibleValues is set (#113913)

* fix

* fix
This commit is contained in:
Victor Marin
2025-11-21 12:14:50 +02:00
committed by GitHub
parent e7377a8842
commit 42babc7ce7
@@ -26,6 +26,7 @@ class UnthemedValueContainer<Option, isMulti extends boolean, Group extends Grou
if (
this.ref.current &&
this.props.selectProps.autoWidth &&
!this.props.selectProps.maxVisibleValues &&
!isEqual(prevProps.selectProps.value, this.props.selectProps.value)
) {
// Reset in order to measure the new width