Skip to content

Commit b52b0d3

Browse files
committed
fix: Dialog click issue
1 parent 579aff0 commit b52b0d3

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

javascript/tokenscript-viewer/src/components/common/tokens-grid/token-security-status-popover.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,18 @@ export class TokenSecurityStatus {
4848

4949
render() {
5050
return (
51-
this.securityInfo ?
52-
<Host>
53-
<popover-dialog ref={(el) => this.dialog = el as HTMLPopoverDialogElement} dialogStyles={{background: "#fff !important", color: "#000 !important"}}>
54-
<h1 class="security-popover-icon" style={{color: this.statusColor}}>{this.statusIcon}</h1>
55-
<strong innerHTML={this.securityInfo.statusText.replaceAll("\n", "<br/>")}/>
56-
<p style={{wordWrap: "break-word"}} innerHTML={this.getDetailedSecurityInfo().replaceAll("\n", "<br/>")}>
57-
</p>
58-
</popover-dialog>
59-
</Host>
60-
: ''
51+
<Host>
52+
<popover-dialog ref={(el) => this.dialog = el as HTMLPopoverDialogElement} dialogStyles={{background: "#fff !important", color: "#000 !important"}}>
53+
{(this.securityInfo ?
54+
<div>
55+
<h1 class="security-popover-icon"
56+
style={{color: this.statusColor}}>{this.statusIcon}</h1>
57+
<strong innerHTML={this.securityInfo.statusText.replaceAll("\n", "<br/>")}/>
58+
<p style={{wordWrap: "break-word"}} innerHTML={this.getDetailedSecurityInfo().replaceAll("\n", "<br/>")}></p>
59+
</div>
60+
: '')}
61+
</popover-dialog>
62+
</Host>
6163
)
6264
}
6365
}

0 commit comments

Comments
 (0)