windmill
windmill copied to clipboard
fix(frontend): prevent multiple menu opening
[!IMPORTANT] Prevent multiple menu openings by using unique
modalIdand excluding these IDs from click outside events.
- Behavior:
- Prevents multiple menu openings by introducing
modalIdinAppButton.svelteandAppMenu.svelte.- Excludes
modalIdfrom click outside events inMenu.svelteto prevent closing other menus.- Components:
- Adds
modalIdandmodalWrapperClassprops toConfirmationModal.svelte.- Calls
onSuccesscallback inAppButton.svelteafter setting list inputs.- Misc:
- Uses
crypto.randomUUID()to generate uniquemodalIdinAppMenu.svelte.- Adjusts
getMenuElements()inMenu.svelteto include elements withmodalId.This description was created by
for 04f7b03ad5084840bef10a6a8dabc7b01e7f16d3. You can customize this summary. It will automatically update as commits are pushed.
Deploying windmill with
Cloudflare Pages
| Latest commit: |
04f7b03
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5bc8abcd.windmill.pages.dev |
| Branch Preview URL: | https://glm-fix-frontend-prevent-mul.windmill.pages.dev |
This PR fixes #5739