mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 17:25:16 +03:00
fix: Focus end of field when editing (#779)
This commit is contained in:
5
client/src/utils/element-helpers.js
Normal file
5
client/src/utils/element-helpers.js
Normal file
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user