-
I'm looking at the docs and I don't see any my goal is to get the popover to open when the Editable input has focus, so my thought was to drive the popover as a controlled component. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I'm wondering if I was actually trying to solve the problem at the wrong level. I found that this approach allowed me to compose the machines together with the behavior I needed:
I don't understand why, but both the editable and popover machines must be initialized with |
Beta Was this translation helpful? Give feedback.
-
@bstro You're doing it the right way now, I just realised we aren't using an |
Beta Was this translation helpful? Give feedback.
@bstro You're doing it the right way now, I just realised we aren't using an
open
key in the context, so my first solution won't work.But you shouldn't need the
ids
key to make it work