( element: HTMLInputElement | HTMLTextAreaElement, )
| 32 | } |
| 33 | |
| 34 | export function startTrackValue( |
| 35 | element: HTMLInputElement | HTMLTextAreaElement, |
| 36 | ) { |
| 37 | if (!isReact17Element(element)) { |
| 38 | return |
| 39 | } |
| 40 | |
| 41 | element[TrackChanges] = { |
| 42 | previousValue: String(element.value), |
| 43 | tracked: [], |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | export function trackOrSetValue( |
| 48 | element: HTMLInputElement | HTMLTextAreaElement, |
no test coverage detected