MCPcopy Create free account
hub / github.com/react-component/select / onDisplayValuesChange

Function onDisplayValuesChange

src/Select.tsx:560–569  ·  view source on GitHub ↗
(nextValues, info)

Source from the content-addressed store, hash-verified

558 // ======================= Display Change =======================
559 // BaseSelect display values change
560 const onDisplayValuesChange: BaseSelectProps['onDisplayValuesChange'] = (nextValues, info) => {
561 triggerChange(nextValues);
562 const { type, values } = info;
563
564 if (type === 'remove' || type === 'clear') {
565 values.forEach((item) => {
566 triggerSelect(item.value, false, type);
567 });
568 }
569 };
570
571 // =========================== Search ===========================
572 const onInternalSearch: BaseSelectProps['onSearch'] = (searchText, info) => {

Callers 3

onInternalKeyDownFunction · 0.85
onSelectorRemoveFunction · 0.85
onClearMouseDownFunction · 0.85

Calls 2

triggerChangeFunction · 0.85
triggerSelectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…