UNPKG

245 BTypeScriptView Raw
1/**
2 * Keep input cursor in the correct position if possible.
3 * Is this necessary since we have `formatter` which may mass the content?
4 */
5export default function useCursor(input: HTMLInputElement, focused: boolean): [() => void, () => void];