mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-26 00:01:37 +00:00
fix tabs selected behavior change from svelte 5
This commit is contained in:
@@ -28,7 +28,16 @@
|
||||
|
||||
const selectedStore = writable(selected)
|
||||
|
||||
$: $selectedStore && dispatch('selected', $selectedStore)
|
||||
$: $selectedStore && onSelectedStoreChange()
|
||||
|
||||
let initial = true
|
||||
function onSelectedStoreChange() {
|
||||
if (initial) {
|
||||
initial = false
|
||||
return
|
||||
}
|
||||
dispatch('selected', $selectedStore)
|
||||
}
|
||||
|
||||
$: hashValues = values ? values.map((x) => '#' + x) : undefined
|
||||
setContext<TabsContext>('Tabs', {
|
||||
|
||||
Reference in New Issue
Block a user