(
inputValue: string,
actionMeta: InputActionMeta,
onInputChange?: (
newValue: string,
actionMeta: InputActionMeta
) => string | void
)
| 139 | // ============================== |
| 140 | |
| 141 | export function handleInputChange( |
| 142 | inputValue: string, |
| 143 | actionMeta: InputActionMeta, |
| 144 | onInputChange?: ( |
| 145 | newValue: string, |
| 146 | actionMeta: InputActionMeta |
| 147 | ) => string | void |
| 148 | ) { |
| 149 | if (onInputChange) { |
| 150 | const newValue = onInputChange(inputValue, actionMeta); |
| 151 | if (typeof newValue === 'string') return newValue; |
| 152 | } |
| 153 | return inputValue; |
| 154 | } |
| 155 | |
| 156 | // ============================== |
| 157 | // Scroll Helpers |
no test coverage detected
searching dependent graphs…