Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit de5a513

Browse filesBrowse files
committed
sync blockers
1 parent 7adaa4f commit de5a513
Copy full SHA for de5a513

File tree

Expand file treeCollapse file tree

1 file changed

+7
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-5
lines changed

‎src/Button.vue

Copy file name to clipboardExpand all lines: src/Button.vue
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,15 @@ export default {
269269
}
270270
},
271271
methods: {
272-
toggle (event) {
273-
this.toggled = !this.toggled
274-
this.$emit('input', this.toggled)
272+
toggle(event) {
273+
if (!this.sync) {
274+
this.toggled = !this.toggled;
275+
}
276+
this.$emit('input', this.toggled);
275277
this.$emit('change', {
276278
value: this.toggled,
277-
srcEvent: event
278-
})
279+
srcEvent: event,
280+
});
279281
}
280282
}
281283
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.