mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-05-17 03:09:38 +03:00
Fixes v-model syncing so clicking items still triggers a sync
This commit is contained in:
Vendored
+1
-1
@@ -48,7 +48,7 @@ var VueTribute = {
|
||||
this.tribute.attach($el);
|
||||
$el.tributeInstance = this.tribute;
|
||||
$el.addEventListener("tribute-replaced", function (e) {
|
||||
e.detail.event.target.dispatchEvent(new Event("input", {
|
||||
e.target.dispatchEvent(new Event("input", {
|
||||
bubbles: true
|
||||
}));
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -44,7 +44,7 @@ var VueTribute = {
|
||||
this.tribute.attach($el);
|
||||
$el.tributeInstance = this.tribute;
|
||||
$el.addEventListener("tribute-replaced", function (e) {
|
||||
e.detail.event.target.dispatchEvent(new Event("input", {
|
||||
e.target.dispatchEvent(new Event("input", {
|
||||
bubbles: true
|
||||
}));
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -1839,7 +1839,7 @@
|
||||
this.tribute.attach($el);
|
||||
$el.tributeInstance = this.tribute;
|
||||
$el.addEventListener("tribute-replaced", function (e) {
|
||||
e.detail.event.target.dispatchEvent(new Event("input", {
|
||||
e.target.dispatchEvent(new Event("input", {
|
||||
bubbles: true
|
||||
}));
|
||||
});
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-3
@@ -43,9 +43,7 @@ const VueTribute = {
|
||||
$el.tributeInstance = this.tribute;
|
||||
|
||||
$el.addEventListener("tribute-replaced", e => {
|
||||
e.detail.event.target.dispatchEvent(
|
||||
new Event("input", { bubbles: true })
|
||||
);
|
||||
e.target.dispatchEvent(new Event("input", { bubbles: true }));
|
||||
});
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user