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
  34c67be5_a817_3c4c_3a5a_1b8aed9069db["updateSelect()"]
  eacf6ea7_715f_9cb7_7d87_252baca11c87["model-select.spec.ts"]
  34c67be5_a817_3c4c_3a5a_1b8aed9069db -->|defined in| eacf6ea7_715f_9cb7_7d87_252baca11c87
  5d57bc6c_84a0_95aa_04c1_df51bf814a5d["getValue()"]
  34c67be5_a817_3c4c_3a5a_1b8aed9069db -->|calls| 5d57bc6c_84a0_95aa_04c1_df51bf814a5d
  style 34c67be5_a817_3c4c_3a5a_1b8aed9069db 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

Calls

Frequently Asked Questions

What does updateSelect() do?
updateSelect() is a function in the vue codebase, defined in test/unit/features/directives/model-select.spec.ts.
Where is updateSelect() defined?
updateSelect() is defined in test/unit/features/directives/model-select.spec.ts at line 20.
What does updateSelect() call?
updateSelect() calls 1 function(s): getValue.

Analyze Your Own Codebase

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

Try Supermodel Free