File tree Expand file tree Collapse file tree
packages/web-pkg/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 </oc-text-input >
3232 <oc-drop
3333 ref =" dropRef"
34+ toggle =" #create-shortcut-modal-url-input"
3435 class =" w-lg"
3536 padding-size =" remove"
3637 drop-id =" create-shortcut-modal-contextmenu"
@@ -315,7 +316,7 @@ export default defineComponent({
315316 }
316317
317318 e .stopPropagation ()
318- ;( unref (dropRef ) as InstanceType < typeof OcDrop > ).hide ()
319+ unref (dropRef ).hide ()
319320 }
320321
321322 const onKeyEnterDrop = (e : Event ) => {
@@ -334,7 +335,7 @@ export default defineComponent({
334335 dropItemResourceClicked (unref (searchResult )?.values ?.[unref (activeDropItemIndex ) - 1 ])
335336 }
336337
337- ;( unref (dropRef ) as InstanceType < typeof OcDrop > ).hide ()
338+ unref (dropRef ).hide ()
338339 }
339340
340341 const onHideDrop = () => {
@@ -351,7 +352,7 @@ export default defineComponent({
351352 const showDrop = inputUrl .value .trim ().length
352353
353354 if (showDrop ) {
354- ;( unref (dropRef ) as InstanceType < typeof OcDrop > ).show ()
355+ unref (dropRef ).show ()
355356 }
356357 }
357358
@@ -362,11 +363,11 @@ export default defineComponent({
362363 const hideDrop = ! inputUrl .value .trim ().length
363364
364365 if (hideDrop ) {
365- ;( unref (dropRef ) as InstanceType < typeof OcDrop > ).hide ()
366+ unref (dropRef ).hide ()
366367 return
367368 }
368369
369- ;( unref (dropRef ) as InstanceType < typeof OcDrop > ).show ()
370+ unref (dropRef ).show ()
370371
371372 if (! isLocationPublicActive (router , ' files-public-link' )) {
372373 debouncedSearch ()
You can’t perform that action at this time.
0 commit comments