-
Notifications
You must be signed in to change notification settings - Fork 7
Activate Menu's active Option before opening Menu #1065
Conversation
🦋 Changeset detectedLatest commit: 412b02c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
// But two open sub-Menus doesn't make sense. So Menu will close one of them in | ||
// `firstUpdated()`. And it does that by setting `open` to `false`, which results | ||
// in a `#hide()` call. So `#hide()` will be called immediately after `#show()`. | ||
await this.#activeOption?.updateComplete; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comments as well! 🎉
cbd1e24
to
c93f1c1
Compare
// This is a test to see if disabling Hot Module Reloading eliminates the Vite | ||
// cache misses we've been seeing in CI with Playwright tests. We'll need to keep | ||
// this in place for a while to see if it solves the problem. | ||
noDiscovery: Boolean(process.env.CI), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1d354ed
to
46822b9
Compare
46822b9
to
412b02c
Compare
// But two open sub-Menus doesn't make sense. So Menu will close one of them in | ||
// `firstUpdated()`. And it does that by setting `open` to `false`, which results | ||
// in a `#hide()` call. So `#hide()` will be called immediately after `#show()`. | ||
await this.#activeOption?.updateComplete; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comments as well! 🎉
uses: actions/download-artifact@v4 | ||
with: | ||
name: storybook | ||
path: ./dist/storybook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused.
🚀 Description
📋 Checklist
🔬 Manual Testing