date-input-control
Version:
Capture dates using day, month and year components
17 lines (16 loc) • 432 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.focusEnd = exports.focusStart = exports.focus = void 0;
exports.focus = (el) => {
el.focus();
};
exports.focusStart = (el) => {
el.focus();
el.selectionStart = 0;
el.selectionEnd = 0;
};
exports.focusEnd = (el) => {
el.focus();
el.selectionStart = el.value.length;
el.selectionEnd = el.value.length;
};