-
Notifications
You must be signed in to change notification settings - Fork 6
docs(link): add usage example with React Router #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_href
(required) da müssen wir schauen - bitte probiere das Beispiel mit React aus und adaptiere es dann für reines HTML.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @deleonio ,
ich habe nochmal drüber nachgedacht. Da es bereits ein React-Sample-Projekt gibt, würde ich dort ein React-Router-Beispiel ergänzen (mit identischer Route in _href und navigate(...)). Hintergrund: onClick mit deaktiviert beim Primärklick die native _href-Navigation, während Rechtsklick/„In neuem Tab öffnen“ weiterhin dem _href folgt – daher müssen beide Pfade übereinstimmen.
In der Doku verlinken wir dann direkt auf dieses Sample und lassen auf der Seite selbst ein kurzes HTML-Only-Beispiel.
Wenn das für dich passt, erstelle ich im Haupt-Kolibri-Repo ein Ticket und aktualisiere anschließend diese PR später entsprechend. passt es?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beim onClick event.defaultPrevent verwenden - oder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ja exact, kann ich dafür ein Sample in react erweitern?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beim onClick event.defaultPrevent verwenden - oder?
No description provided.