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
I have a custom component that when it's within a Menu should use a MenuButton, but an XButton otherwise. I'd seen the error when MenuButton is included without being in a Menu so I looked into how it did that and saw it's using a provide/inject, but unfortunately it's using a symbol which isn't exported so I can't use in within the project.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a custom component that when it's within a Menu should use a MenuButton, but an XButton otherwise. I'd seen the error when MenuButton is included without being in a Menu so I looked into how it did that and saw it's using a provide/inject, but unfortunately it's using a symbol which isn't exported so I can't use in within the project.
headlessui/packages/@headlessui-vue/src/components/menu/menu.ts
Line 76 in d71fb9c
Beta Was this translation helpful? Give feedback.
All reactions