fast icon indicating copy to clipboard operation
fast copied to clipboard

fix: Submenus Not Displaying Correctly in CodeSandbox

Open break-stuff opened this issue 3 years ago • 1 comments

🐛 Bug Report

Submenus are not rendering correctly in a CodeSandbox environment

💻 Repro or Code Sample

https://codesandbox.io/s/stupefied-moon-2skhey

🤔 Expected Behavior

😯 Current Behavior

When rendering submenus in a CodeSandbox environment, they are not hidden initially and overlap the menu contents rather than display to the right.

💁 Possible Solution

It looks like the slot is not being appropriately applied to the submenu. Setting a timeout to check for parent menus should fix the issue.

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • Version [e.g. 1.8.0]

break-stuff avatar May 24 '22 14:05 break-stuff

Thanks for the issue @break-stuff - looks like an issue with AnchoredRegion not being registered perhaps...we'll take a look. EDIT: I also see the slot not being applied here which is strange, we'll take a look there as well :).

chrisdholt avatar May 24 '22 15:05 chrisdholt