mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-06-25 01:40:34 +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);
|
this.tribute.attach($el);
|
||||||
$el.tributeInstance = this.tribute;
|
$el.tributeInstance = this.tribute;
|
||||||
$el.addEventListener("tribute-replaced", function (e) {
|
$el.addEventListener("tribute-replaced", function (e) {
|
||||||
e.detail.event.target.dispatchEvent(new Event("input", {
|
e.target.dispatchEvent(new Event("input", {
|
||||||
bubbles: true
|
bubbles: true
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|||||||
Vendored
+1
-1
@@ -44,7 +44,7 @@ var VueTribute = {
|
|||||||
this.tribute.attach($el);
|
this.tribute.attach($el);
|
||||||
$el.tributeInstance = this.tribute;
|
$el.tributeInstance = this.tribute;
|
||||||
$el.addEventListener("tribute-replaced", function (e) {
|
$el.addEventListener("tribute-replaced", function (e) {
|
||||||
e.detail.event.target.dispatchEvent(new Event("input", {
|
e.target.dispatchEvent(new Event("input", {
|
||||||
bubbles: true
|
bubbles: true
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1839,7 +1839,7 @@
|
|||||||
this.tribute.attach($el);
|
this.tribute.attach($el);
|
||||||
$el.tributeInstance = this.tribute;
|
$el.tributeInstance = this.tribute;
|
||||||
$el.addEventListener("tribute-replaced", function (e) {
|
$el.addEventListener("tribute-replaced", function (e) {
|
||||||
e.detail.event.target.dispatchEvent(new Event("input", {
|
e.target.dispatchEvent(new Event("input", {
|
||||||
bubbles: true
|
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.tributeInstance = this.tribute;
|
||||||
|
|
||||||
$el.addEventListener("tribute-replaced", e => {
|
$el.addEventListener("tribute-replaced", e => {
|
||||||
e.detail.event.target.dispatchEvent(
|
e.target.dispatchEvent(new Event("input", { bubbles: true }));
|
||||||
new Event("input", { bubbles: true })
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
|||||||
Reference in New Issue
Block a user