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

import character & load backup locally not working on Safari / Tauri on Mac OS #584

Open
dohyun-ko opened this issue Aug 2, 2024 · 1 comment

Comments

@dohyun-ko
Copy link

File selector does not appear when "import character" or "load backup locally" button clicked.

Safari security policy seems to be the cause of this issue - input.click() is not working when display='none' or that isn't the direct result of user interactions.
Refer to Stack Overflow comment: https://stackoverflow.com/questions/26501221/calling-click-event-of-input-doesnt-work-in-safari#:~:text=Click%20event%20in%20safari%20on%20input%20type%20file%20will%20work%20if%20it%20is%20not%20hidden%20and%20click()%20is%20called%20out%20of%20user%20interaction%20(e.g%20inside%20onclick%20handler%20etc)

I've tried to fix it, but it requires too many huge structural changes.

@Asherathe
Copy link

I've noticed the same issue with the Linux AppImage with the file selector not showing up to load a backup locally. Importing characters does work, though. No Safari in this case, of course, so I'm not sure if the cause is related or not.

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

2 participants