mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🚨
This commit is contained in:
parent
0af27fa5d8
commit
09fd48f25a
2 changed files with 12 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue