mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 01:11:40 +03:00
6 lines
199 B
JavaScript
6 lines
199 B
JavaScript
|
|
// eslint-disable-next-line import/prefer-default-export
|
||
|
|
export const focusEnd = (element) => {
|
||
|
|
element.focus();
|
||
|
|
element.setSelectionRange(element.value.length + 1, element.value.length + 1);
|
||
|
|
};
|