MCPcopy Create free account
hub / github.com/adobe/react-spectrum / comboMatches

Function comboMatches

perf/drivers.mjs:101–106  ·  view source on GitHub ↗
(size, query)

Source from the content-addressed store, hash-verified

99 await page.locator('#combo-input').focus();
100}
101const comboMatches = (size, query) => [
102 condition('#query', {text: query}),
103 condition('[role="option"]', {
104 count: Array.from({length: size}, (_, i) => String(i)).filter(i => i.includes(query)).length
105 })
106];
107
108// The first matches for `9` replace the first records, wherever they render.
109const virtualMatches = () => [

Callers 1

drivers.mjsFile · 0.85

Calls 3

conditionFunction · 0.85
StringFunction · 0.85
filterMethod · 0.65

Tested by

no test coverage detected