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
Create a InputGroup that has no rightElement on mount
Update prop of InputGroup to include a rightElement
Actual behavior
The InputGroup does not resize to adjust its padding-right for the rightElement, which causes overlapping.
Expected behavior
The inputGroup recomputes its padding-right to reflect the new rightElement prop.
Possible solution
I believe this bug is caused by a change here, which seemed to be an attempt to fix some sort of infinite loop scenario. The fix ended up removing any re-calculation via componentDidUpdate, which means the right padding is effectively locked in after initial render. I think perhaps we should introduce the componentDidUpdate, but only recompute the rightElementWidth if the rightElement prop changed.
Environment
Steps to reproduce
Actual behavior
The InputGroup does not resize to adjust its padding-right for the rightElement, which causes overlapping.
Expected behavior
The inputGroup recomputes its padding-right to reflect the new rightElement prop.
Possible solution
I believe this bug is caused by a change here, which seemed to be an attempt to fix some sort of infinite loop scenario. The fix ended up removing any re-calculation via
componentDidUpdate
, which means the right padding is effectively locked in after initial render. I think perhaps we should introduce thecomponentDidUpdate
, but only recompute the rightElementWidth if therightElement
prop changed.#3813
66b16dd
The text was updated successfully, but these errors were encountered: