( instance: Instance, element: EditableInputOrTextarea, newOffset: number, inputInit: InputEventInit, )
| 228 | } |
| 229 | |
| 230 | function commitInput( |
| 231 | instance: Instance, |
| 232 | element: EditableInputOrTextarea, |
| 233 | newOffset: number, |
| 234 | inputInit: InputEventInit, |
| 235 | ) { |
| 236 | instance.dispatchUIEvent(element, 'input', inputInit) |
| 237 | |
| 238 | commitValueAfterInput(element, newOffset) |
| 239 | } |
| 240 | |
| 241 | function isValidNumberInput(value: string) { |
| 242 | // the browser allows some invalid input but not others |
no test coverage detected