fix: Focus end of field when editing (#779)
parent
0e3bc92a61
commit
4124ab17d2
@ -0,0 +1,5 @@
|
|||||||
|
// eslint-disable-next-line import/prefer-default-export
|
||||||
|
export const focusEnd = (element) => {
|
||||||
|
element.focus();
|
||||||
|
element.setSelectionRange(element.value.length + 1, element.value.length + 1);
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue