daisyui icon indicating copy to clipboard operation
daisyui copied to clipboard

Add pointer-events-none by default to .collapse:focus class

Open kimdre opened this issue 2 years ago โ€ข 0 comments

To close a collapse container you need to click outside of it to remove the focus. Imho closing it should also be possible with a second click inside the container. This is at the moment only possible by using the collapse with a checkbox.

As a workaround you can add this to your custom .css file:

.collapse:focus {
    @apply pointer-events-none;
}

Can we perhaps have this feature implemented by default for non-checkbox collapses?

kimdre avatar Jan 09 '23 23:01 kimdre