Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
beorostica opened this issue Jul 19, 2023 · 0 comments
Open

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

beorostica opened this issue Jul 19, 2023 · 0 comments

Comments

@beorostica
Copy link

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 beorostica changed the title Filepicker widget doesn't response when selecting the same file Filepicker widget doesn't respond when selecting the same file Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant