A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/f127d916d1ddd3a3da37bcb081150f86b356a7a4 below:

prevent endless reevaluation when using v-model and obj… · bootstrap-vue/bootstrap-vue@f127d91 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+4

-2

lines changed Original file line number Diff line number Diff line change

@@ -105,8 +105,10 @@ export default {

105 105

}

106 106

},

107 107

// Watch for changes on `computedItems` and update the `v-model`

108 -

computedItems(newVal) {

109 -

this.$emit('input', newVal)

108 +

computedItems(newVal, oldVal) {

109 +

if (!looseEqual(newVal, oldVal)) {

110 +

this.$emit('input', newVal)

111 +

}

110 112

},

111 113

// Watch for context changes

112 114

context(newVal, oldVal) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4