You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any good way to have a dialog that will behave as a link if the page is still hydratating when the user clicks, but as a dialog only normally?
i've tried to use the Button asChild->Link
<Dialog.TriggerasChild><Buttonvariant="solid"colorPalette="cyan"asChild><Linkhref="/share"onClick={(e)=>e.preventDefault()}>
Share Information
</Link></Button></Dialog.Trigger>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any good way to have a dialog that will behave as a link if the page is still hydratating when the user clicks, but as a dialog only normally?
i've tried to use the Button asChild->Link
But that will show the dialog and then navigate.
Beta Was this translation helpful? Give feedback.
All reactions