Skip to content
Snippets Groups Projects
Unverified Commit 06eb176a authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Reset value attribute to really make sure it is empty and will trigger a...

Reset value attribute to really make sure it is empty and will trigger a change event when it is set again with the previous value
parent e77faaf8
No related branches found
No related tags found
No related merge requests found
Pipeline #30417 passed
...@@ -75,6 +75,10 @@ export class PersonSelect extends ScopedElementsMixin(AdapterLitElement) { ...@@ -75,6 +75,10 @@ export class PersonSelect extends ScopedElementsMixin(AdapterLitElement) {
this.object = null; this.object = null;
$(this).attr("data-object", ""); $(this).attr("data-object", "");
$(this).data("object", null); $(this).data("object", null);
this.value = "";
// Reset value attribute to really make sure it is empty and will trigger a change event
// when it is set again with the previous value
$(this).attr("value", "");
this.$select.val(null).trigger('change').trigger('select2:unselect'); this.$select.val(null).trigger('change').trigger('select2:unselect');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment