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
When I have a select input inside an accordion, it only works if the accordion is open by default. As soon as it closes, it does not come back. Also, if the accordion is closed by default, it will never appear.
Here is a minimal example:
<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"/><metaname="viewport" content="width=device-width"/><title>Franken UI</title><linkrel="preconnect" href="https://rsms.me/"/><linkrel="stylesheet" href="https://rsms.me/inter/inter.css"/><style>
:root {
font-family: Inter, sans-serif;
font-feature-settings: "liga" 1, "calt" 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
:root {
font-family: InterVariable, sans-serif;
}
}
</style><!-- For stability in production, it's recommended that you hardcode the latest version in the CDN link. --><linkrel="stylesheet"
href="https://unpkg.com/franken-ui/dist/css/core.min.css"
/><script>consthtmlElement=document.documentElement;if(localStorage.getItem("mode")==="dark"||(!("mode"inlocalStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches)){htmlElement.classList.add("dark");}else{htmlElement.classList.remove("dark");}htmlElement.classList.add(localStorage.getItem("theme")||"uk-theme-zinc");</script><scripttype="module"
src="https://unpkg.com/franken-ui/dist/js/core.iife.js"
></script><scripttype="module"
src="https://unpkg.com/franken-ui/dist/js/icon.iife.js"
></script></head><bodyclass="bg-background text-foreground"><!-- START CODING HERE --><divclass="uk-flex uk-flex-column uk-flex-middle uk-flex-center"><divclass="uk-width-1-1"><ulclass="uk-accordion" uk-accordion><liclass="uk-open"><aclass="uk-accordion-title" href>
Item 1
<spanclass="uk-accordion-icon"><uk-iconicon="chevron-down"></uk-icon></span></a><divclass="uk-accordion-content"><uk-selectuk-cloak><optionvalue="option1">Option 1</option><optionvalue="option2">Option 2</option><optionvalue="option3">Option 3</option></uk-select></div></li><li><aclass="uk-accordion-title" href>
Item 2
<spanclass="uk-accordion-icon"><uk-iconicon="chevron-down"></uk-icon></span></a><divclass="uk-accordion-content"><uk-selectuk-cloak><optionvalue="option4">Option 4</option><optionvalue="option5">Option 5</option><optionvalue="option6">Option 6</option></uk-select></div></li><li><aclass="uk-accordion-title" href>
Item 3
<spanclass="uk-accordion-icon"><uk-iconicon="chevron-down"></uk-icon></span></a><divclass="uk-accordion-content"><uk-selectuk-cloak><optionvalue="option7">Option 7</option><optionvalue="option8">Option 8</option><optionvalue="option9">Option 9</option></uk-select></div></li></ul></div></div><!-- END --></body></html>
Initial render:
After closing and opening the accordion
When inspecting the HTML after closing and opening the accordion, I only see:
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered:
When I have a select input inside an accordion, it only works if the accordion is open by default. As soon as it closes, it does not come back. Also, if the accordion is closed by default, it will never appear.
Here is a minimal example:
Initial render:
After closing and opening the accordion
When inspecting the HTML after closing and opening the accordion, I only see:
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: