Skip to content

Commit

Permalink
feat:下拉选择器层级问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ananzhusen committed Nov 11, 2024
1 parent bbef87a commit 6c7260b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/canvas/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7101,6 +7101,7 @@ export class Canvas {
this.dropdown.style.background = pen.dropdownBackground || '#fff';
this.dropdown.style.color = pen.dropdownColor || '#bdc7db';
this.setDropdownList();
this.externalElements.style.zIndex = '9999';
} else {
// this.inputRight.style.display = 'none';
}
Expand Down Expand Up @@ -7299,6 +7300,7 @@ export class Canvas {
}

hideInput = () => {
this.externalElements.style.zIndex = '5';
if (this.inputParent.style.display === 'flex') {
this.inputParent.style.display = 'none';
const pen = this.store.pens[this.inputDiv.dataset.penId];
Expand Down Expand Up @@ -7339,6 +7341,7 @@ export class Canvas {
}
this.initTemplateCanvas([pen]);
}

this.inputDiv.dataset.penId = undefined;
this.dropdown.style.display = 'none';
this.inputDiv.dataset.isInput = 'false';
Expand Down

0 comments on commit 6c7260b

Please sign in to comment.