This commit is contained in:
Vanessa 2023-07-22 10:20:11 +08:00
parent 0af27fa5d8
commit 09fd48f25a
2 changed files with 12 additions and 12 deletions

View file

@ -53,14 +53,14 @@ export const openMenuPanel = (options: {
const cellRect = options.cellElements[options.cellElements.length - 1].getBoundingClientRect();
setPosition(menuElement, cellRect.left, cellRect.bottom, cellRect.height);
bindSelectEvent(options.protyle, data, menuElement, options.cellElements);
const inputElement = menuElement.querySelector("input")
const inputElement = menuElement.querySelector("input");
inputElement.select();
inputElement.focus();
} else if (options.type === "date") {
const cellRect = options.cellElements[options.cellElements.length - 1].getBoundingClientRect();
setPosition(menuElement, cellRect.left, cellRect.bottom, cellRect.height);
bindDateEvent({protyle: options.protyle, data, menuElement});
const inputElement = menuElement.querySelector("input")
const inputElement = menuElement.querySelector("input");
inputElement.select();
inputElement.focus();
} else {