rob-balfre / svelte-select

Svelte Select. A select component for Svelte
https://svelte-select-examples.vercel.app
Other
1.25k stars 175 forks source link

on:blur event not always firing. #570

Closed cyaris closed 1 year ago

cyaris commented 1 year ago

On newest version, 5.5.1.

rob-balfre commented 1 year ago

@cyaris seems ok to me. Got an example? Thanks

cyaris commented 1 year ago

i'll try to replicate.

cyaris commented 1 year ago

Here's a repl @rob-balfre. Select an item, then click the container to open the list, then click outside the list. The list will still be focused and won't close.

cyaris commented 1 year ago

The blur event stops working once an item is selected.

cyaris commented 1 year ago

@rob-balfre just simplified the repl.

rob-balfre commented 1 year ago

@cyaris I can't debug that its way too complex.

cyaris commented 1 year ago

Hey @rob-balfre , just stripped it down significantly. Would you mind taking a look again? Thanks.

cyaris commented 1 year ago

This example in the docs is demonstrating the same bug: https://svelte-select-examples.vercel.app/examples/slots/list

rob-balfre commented 1 year ago

Tweaked the on:blur code and released 5.5.2. Let me know if that's helped.

cyaris commented 1 year ago

It did. thanks @rob-balfre .