A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/vuejs/vue-next/commit/ecd97ee6e465ec5c841d58d96833fece4e899785 below:

only set selectedIndex when the value chang… · vuejs/core@ecd97ee · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

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

@@ -224,12 +224,12 @@ function setSelected(el: HTMLSelectElement, value: any) {

224 224

}

225 225

} else {

226 226

if (looseEqual(getValue(option), value)) {

227 -

el.selectedIndex = i

227 +

if (el.selectedIndex !== i) el.selectedIndex = i

228 228

return

229 229

}

230 230

}

231 231

}

232 -

if (!isMultiple) {

232 +

if (!isMultiple && el.selectedIndex !== -1) {

233 233

el.selectedIndex = -1

234 234

}

235 235

}

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