-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
input nwdirectory makes a wrong path when openning the path selector dialog again #7786
Comments
I can confirm that I'm also seeing this behavior. I had actually seen it back in June, but it stopped showing up in the app I was working on (I assume because I started resetting |
@sysrage How to reset? I tried setAttribute but it does not work. Do you mean recreating the <input>? |
My app is using React, so I just stored the users selection in a state variable and used that as the |
I'm also seeing this behavior on windows 10, nwjs 57.1 . i want to save a file.
At that point, if i cancel and reclick the same button, reproducing the chain of events i described , the filename displayed by the file dialog is correct again. I'm guessing it needs to see a different filename at each invocation, but just temporarily changing the attribute to a fake value is not enough. edit: oh and I'm using react too . |
One work around you can do is to do |
@TheJaredWilcurt That does the trick, thanks ! |
NWJS Version : 0.57.0
Operating System : win10 x64
Expected behavior
The dialog should have correct path when opened second time
Actual behavior
The path in the dialog uses _ instead of : and \
E.g. E:\Test\Abc becomes E__Test_Abc
How to reproduce
Click the input, select a path (E:\Test for example), then click the input again, this time the path in the dialog will become E__Test
First time open dialog
Second time open dialog
The text was updated successfully, but these errors were encountered: