Is anyone else struggling with "positioning" in a combobox in React v9? #32047
-
I appreciate that this is a known and default behavior for it to move itself around because otherwise the items would get clipped off-screen, but if the client wants to force it to stay put, the more material concern for me is none of the props, either string or shorthand, seem to affect the behavior at all: In the docs it makes mention of the existence of such a prop: But the old shorthands don't work: Would appreciate any clarification. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Beta Was this translation helpful? Give feedback.
@vincentjflorio you need to use the
pinned
prop for this. You can see it working in the following stackblitz by commenting and uncommenting thepinned
prop.This is what it looks like directly as a GIF.
Not pinned:
Pinned:
Hopefully that helps!