qwik icon indicating copy to clipboard operation
qwik copied to clipboard

[✨] Qwik-city Link preventdefault:click

Open diicar opened this issue 2 years ago • 4 comments

Is your feature request related to a problem?

Hello,

The preventdefault:click on <Link href="/qwik"> is ignored.

Describe the solution you'd like

Take into account preventdefault:click when using <Link /> component and do not trigger navigation when its present.

https://github.com/BuilderIO/qwik/blob/275e1c7723a0cf95d8e910514a8047a217bb137f/packages/qwik-city/runtime/src/link-component.tsx#L25

Describe alternatives you've considered

None

Additional context

Thank you

diicar avatar May 28 '23 14:05 diicar