Skip to content

Commit c4f7368

Browse files
committed
Lexical: Fixed table column resizing changes not appearing
Also fixed some resizer zindex issues.
1 parent 2a32475 commit c4f7368

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/js/wysiwyg/lexical/table/LexicalTableNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class TableNode extends CommonBlockNode {
5454
static clone(node: TableNode): TableNode {
5555
const newNode = new TableNode(node.__key);
5656
copyCommonBlockProperties(node, newNode);
57-
newNode.__colWidths = node.__colWidths;
57+
newNode.__colWidths = [...node.__colWidths];
5858
newNode.__styles = new Map(node.__styles);
5959
return newNode;
6060
}
@@ -169,7 +169,7 @@ export class TableNode extends CommonBlockNode {
169169

170170
getColWidths(): string[] {
171171
const self = this.getLatest();
172-
return self.__colWidths;
172+
return [...self.__colWidths];
173173
}
174174

175175
getStyles(): StyleMap {

resources/sass/_editor.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ body.editor-is-fullscreen {
422422
.editor-table-marker {
423423
position: fixed;
424424
background-color: var(--editor-color-primary);
425-
z-index: 99;
425+
z-index: 3;
426426
user-select: none;
427427
opacity: 0;
428428
&:hover, &.active {

0 commit comments

Comments
 (0)