Skip to content

fix(mask-markup/choice): add fallback dimensions for dragging state i…#2265

Open
PatriciaRomaniuc wants to merge 1 commit into
developfrom
fix/PIE-963
Open

fix(mask-markup/choice): add fallback dimensions for dragging state i…#2265
PatriciaRomaniuc wants to merge 1 commit into
developfrom
fix/PIE-963

Conversation

@PatriciaRomaniuc

@PatriciaRomaniuc PatriciaRomaniuc commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

…n Choice component PIE-693

https://illuminate.atlassian.net/browse/PIE-693

The issue was that when you start dragging a chip, the code needs to know how big it should be while it's being dragged — basically taking a "snapshot" of its size. But on the very first drag in some environments, that measurement wasn't ready yet, so the code got a size of zero. Zero width and zero height means invisible.

The fix: Added a safety net — if the measurement comes back as zero (or isn't ready), use a sensible minimum size instead. That way the chip is always visible while being dragged, even on the first try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant