Skip to content

Commit

Permalink
refix for B96_ZK_5038Test (refine ZK-5107, ZK-5038)
Browse files Browse the repository at this point in the history
  • Loading branch information
DevChu authored and rebecca0201 committed Oct 17, 2024
1 parent 0090c1b commit 7332a5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions zul/src/main/resources/web/js/zul/sel/ItemWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,12 @@ export class ItemWidget extends zul.Widget<HTMLTableRowElement> implements zul.m
/** @internal */
override bind_(desktop?: zk.Desktop, skipper?: zk.Skipper, after?: CallableFunction[]): void {
super.bind_(desktop, skipper, after);
zWatch.listen({ onResponse: this });
zWatch.listen({ onSize: this });
}

/** @internal */
override unbind_(skipper?: zk.Skipper, after?: CallableFunction[], keepRod?: boolean): void {
zWatch.unlisten({ onResponse: this });
zWatch.unlisten({ onSize: this });
super.unbind_(skipper, after, keepRod);
}

Expand All @@ -453,7 +453,7 @@ export class ItemWidget extends zul.Widget<HTMLTableRowElement> implements zul.m
this._shallCheckClearCache = true;
}

onResponse(): void {
override onSize(): void {
if (this._shallCheckClearCache) {
this._shallCheckClearCache = false;
if (this.getMeshWidget()?.isCheckmark()) {
Expand Down
3 changes: 0 additions & 3 deletions zul/src/main/resources/web/js/zul/sel/Listcell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,6 @@ export class Listcell extends zul.LabelImageWidget<HTMLTableCellElement> {
// ZK-5035: Remove the old checkmark to prevent duplicate checkmarks
if (this.parent?.$n('cm'))
this.nextSibling?.rerender();
else {
this.parent?.clearCache();
}

var chkable = p.isSelectable(),
multi = box.isMultiple();
Expand Down
6 changes: 3 additions & 3 deletions zul/src/main/resources/web/js/zul/sel/Treerow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ export class Treerow extends zul.Widget<HTMLTableRowElement> {
/** @internal */
override bind_(desktop?: zk.Desktop, skipper?: zk.Skipper, after?: CallableFunction[]): void {
super.bind_(desktop, skipper, after);
zWatch.listen({onResponse: this});
zWatch.listen({ onSize: this });
}

/** @internal */
override unbind_(skipper?: zk.Skipper, after?: CallableFunction[], keepRod?: boolean): void {
zWatch.unlisten({onResponse: this});
zWatch.unlisten({ onSize: this });
super.unbind_(skipper, after, keepRod);
}

Expand All @@ -139,7 +139,7 @@ export class Treerow extends zul.Widget<HTMLTableRowElement> {
this._shallCheckClearCache = true;
}

onResponse(): void {
override onSize(): void {
if (this._shallCheckClearCache) {
this._shallCheckClearCache = false;
if (this.getTree()?.isCheckmark()) {
Expand Down

0 comments on commit 7332a5e

Please sign in to comment.