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
I need fine control over the click event on the anchor. Indeed, the e.preventDefault() does not prevent the child anchor to actually trigger a nav action.
For that matter, I need to activate the asChild property, which is present, but the builder property is not exposed in the slot.
We could modify the code, but we would end up modify the code of a bunch of shadcn-svelte components, which would prevent us to take advantage of the improvements yet to come.
The text was updated successfully, but these errors were encountered:
I'm open to someone adding this to all the components. I don't have the time/energy to do it at the moment, especially with snippets on the horizon.
bfovez
changed the title
Expose the 'builder' property is the slots whenever the parent exposes the 'asChild' property.
Expose the 'builder' property in the slots whenever the parent exposes the 'asChild' property.
Apr 25, 2024
Describe the feature
I use this kind of thing:
I need fine control over the click event on the anchor. Indeed, the
e.preventDefault()
does not prevent the child anchor to actually trigger a nav action.For that matter, I need to activate the
asChild
property, which is present, but thebuilder
property is not exposed in the slot.We could modify the code, but we would end up modify the code of a bunch of shadcn-svelte components, which would prevent us to take advantage of the improvements yet to come.
The text was updated successfully, but these errors were encountered: