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
The fix to this issue (commit here) introduced a bug - the id prop is no longer passed to the button tag when the Button is disabled because $$restProps is no longer being passed to svelte:element when the Button is disabled. For us, this means that we can't target a button by id with a tooltip when that button is disabled.
Reproduction
<script>
import { Button } from 'flowbite-svelte';
</script>
<Button id="enabledButton">ID present</Button>
<Button disabled id="disabledButton">ID not present</Button>
That would fix my specific issue, but I think users will expect all the props to be passed into the svelte:element tag when the button is disabled, since that's the behavior when it's not disabled.
Just opened the PR to show the change, I haven't tested it since I don't have the local dev environment for this setup. Feel free to take over / edit that PR or close it and open your own
Describe the bug
The fix to this issue (commit here) introduced a bug - the
id
prop is no longer passed to thebutton
tag when theButton
isdisabled
because$$restProps
is no longer being passed tosvelte:element
when the Button is disabled. For us, this means that we can't target a button by id with a tooltip when that button is disabled.Reproduction
Flowbite version and System Info
The text was updated successfully, but these errors were encountered: