JuliaGizmos / InteractBase.jl

Build interactive HTML5 widgets in Julia
Other
27 stars 23 forks source link

Filepicker widget doesn't respond when selecting the same file #180

Open beorostica opened 1 year ago

beorostica commented 1 year ago

When I use the filepicker widget, I would like to get a response for a callback function even when I select the same same twice or more times. The current behavior just ignores the callback for the same file selection.

This is a minimal working example:

using Blink, Interact
w = Window();
picker = filepicker();
on((n) -> println(picker[]), picker);
body!(w, picker);

, after that, it is necessary to select the same file multiple times and check that the println() function is only called once.

Here is an screeshoot that shows the behavior more clearly: image

I'm using the latests versions of Interact and InteractBase, 0.10.5 and 0.10.10 respectively.

Maybe, the filepicker widget was meant to behave like that, however I need to detect selections even though the same file is chosen. Any ideas to overcome this?