fix: remember atttributeview state in search
parent
ce3420007d
commit
4018cae840
|
@ -99,6 +99,7 @@
|
|||
],
|
||||
},
|
||||
];
|
||||
let lastWidget: string;
|
||||
</script>
|
||||
|
||||
<div>
|
||||
|
@ -129,6 +130,10 @@
|
|||
--current-background="var(--background)"
|
||||
entries={sortedObjects}
|
||||
widgets={searchWidgets}
|
||||
initialWidget={lastWidget}
|
||||
on:widgetSwitched={(ev) => {
|
||||
lastWidget = ev.detail;
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue