Skip to content

Commit

Permalink
Clear hidden id when form cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Aug 21, 2024
1 parent d4eb753 commit 86ad158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/controllers/autocompleter_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ export default class extends Controller {
// this.debug("ourChange(" + this.inputTarget.value + ")");
if (new_val.length == 0) {
this.cssCollapseFields();
this.clearHiddenId();
this.leaveCreate();
} else {
this.cssUncollapseFields();
Expand Down

0 comments on commit 86ad158

Please sign in to comment.