File tree 1 file changed +3
-0
lines changed
sites/next.skeleton.dev/src/components/docs
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 60
60
});
61
61
62
62
const openDialog = () => dialog && dialog .showModal ();
63
+ const closeDialog = () => dialog && dialog .close ();
63
64
64
65
const onClickOutside = (node : HTMLDialogElement ) => {
65
66
const onclick = (event : MouseEvent ) => {
176
177
<a
177
178
class =" card preset-outlined-surface-100-900 hover:preset-tonal grid grid-cols-[auto_1fr_auto] gap-4 items-center p-4"
178
179
href ={result .url }
180
+ onclick ={closeDialog }
179
181
>
180
182
<span ><IconBook class =" size-6 opacity-60" /></span >
181
183
<div class =" space-y-1" >
192
194
<a
193
195
class =" card preset-outlined-surface-100-900 hover:preset-tonal grid grid-cols-[auto_1fr_auto] gap-4 items-center p-4 space-y-1"
194
196
href ={subResult .url }
197
+ onclick ={closeDialog }
195
198
>
196
199
<span class =" hidden md:block" >
197
200
<IconHash class =" size-4 opacity-60" />
You can’t perform that action at this time.
0 commit comments