Skip to content

Commit

Permalink
fire input change event for _getdir plugin (#2745)
Browse files Browse the repository at this point in the history
* fire change event for input

* fire change event for input

---------

Co-authored-by: nelu <unzel@unzel.com>
  • Loading branch information
nelu and nelu authored Oct 19, 2024
1 parent 61ee100 commit d6320df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/_getdir/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ theWebUI.rDirBrowser = class {
selectItem(ev) {
this.frame.find(".rmenuitem.active").removeClass("active");
$(ev.currentTarget).addClass("active");
this.edit.val(this.edit.data("cwd") + ev.target.innerText);
this.edit.data('previousValue', this.edit.val());
this.edit.val(this.edit.data("cwd") + ev.target.innerText).trigger('change');
}

show() {
Expand Down

0 comments on commit d6320df

Please sign in to comment.