InteractBase.jl icon indicating copy to clipboard operation
InteractBase.jl copied to clipboard

Filepicker widget doesn't respond when selecting the same file

Open beorostica opened this issue 1 year ago • 0 comments

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?

beorostica avatar Jul 19 '23 21:07 beorostica