save file dialog OK button enabled when no directory selected
Dorosty opened this issue · comments
Dorosty commented
why is this line like this?
osjs-dialogs/src/dialogs/file.js
Lines 129 to 133 in 66f8aa5
shouldn't it just be?
buttons: {
ok: !!this.args.filename
}
Currently whenever the save dialog box is opened with filetype: 'directory'
the OK button is enabled. Which may be wrong.
Anders Evenrud commented
Feel free to submit a PR to change the behavior :)