Skip to content

Commit

Permalink
Fixed the ability to submit empty autocomplete fields and switching t…
Browse files Browse the repository at this point in the history
…he shareable flag when the role is changed in the actor addition popups
  • Loading branch information
jjdejong committed Feb 6, 2024
1 parent 279ad66 commit 607d045
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,9 @@ const addAutocomplete = function(input) {
if (!suggestionSelected) {
if (input.value !== '') {
input.value = input.dataset.oldvalue || input.dataset.selected || '';
}
// Do not propagate the change to the global change event listener
event.stopPropagation();
// Do not propagate the change to the global change event listener
event.stopPropagation();
} // Else value has been purposely cleared and the global change listenr should handle it
}
suggestionSelected = false;
});
Expand Down
2 changes: 1 addition & 1 deletion public/js/matter-show.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ app.addEventListener('shown.bs.popover', e => {
roleName.addEventListener('acCompleted', (event) => {
selectedItem = event.detail;
addActorForm.shared.value = selectedItem.shareable;
if (selectedItem.shareable === "1") {
if (selectedItem.shareable) {
actorShared.checked = true;
} else {
actorNotShared.checked = true;
Expand Down

0 comments on commit 607d045

Please sign in to comment.