Home / Function/ updateSelect() — vue Function Reference

updateSelect() — vue Function Reference

Architecture documentation for the updateSelect() function in model-select.spec.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  1f0e6b8d_8dbc_03c4_5728_ec6fdb01be94["updateSelect()"]
  65ecf248_3144_6fe6_6b3c_e026bf041584["looseEqual()"]
  1f0e6b8d_8dbc_03c4_5728_ec6fdb01be94 -->|calls| 65ecf248_3144_6fe6_6b3c_e026bf041584
  cdf2f333_656a_a4c3_8fed_0becbd1e81b3["getValue()"]
  1f0e6b8d_8dbc_03c4_5728_ec6fdb01be94 -->|calls| cdf2f333_656a_a4c3_8fed_0becbd1e81b3
  style 1f0e6b8d_8dbc_03c4_5728_ec6fdb01be94 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

test/unit/features/directives/model-select.spec.ts lines 20–29

function updateSelect(el, value) {
  const options = el.options
  let i = options.length
  while (i--) {
    if (looseEqual(getValue(options[i]), value)) {
      options[i].selected = true
      break
    }
  }
}

Domain

Subdomains

Frequently Asked Questions

What does updateSelect() do?
updateSelect() is a function in the vue codebase.
What does updateSelect() call?
updateSelect() calls 2 function(s): getValue, looseEqual.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free