Handle dynamically adding items in list components: Radio Group, Tabs, Listbox, Menu

Fixes #29

Upstream Headless UI handles this for Radio Group but not for the others. I didn't see any reason why not to implement this for the other ones too.
This commit is contained in:
Ryan Gossiaux
2021-12-31 11:46:00 -10:00
parent b5b6854d2d
commit e16e27f04e
10 changed files with 263 additions and 14 deletions

View File

@@ -124,8 +124,7 @@ describe('Rendering', () => {
assertNotFocusable(getByText('Dine in'))
})
// TODO: fix this test!
it.skip('should guarantee the radio option order after a few unmounts', async () => {
it('should guarantee the radio option order after a few unmounts', async () => {
render(svelte`
<script>
let showFirst = false;