Skip to content

Commit

Permalink
imporve overlay show property
Browse files Browse the repository at this point in the history
  • Loading branch information
cavencj authored Aug 9, 2024
1 parent c583a92 commit e14675a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/overlay/Overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ class Overlay {

set show(show) {
this._show = show
this._delegate && (this._delegate.show = this._show)
if(this._delegate && this._delegate.then){
this._delegate.then((obj) => {
obj.show = this._show
})
}else {
this._delegate && (this._delegate.show = this._show)
}
}

get show() {
Expand Down

0 comments on commit e14675a

Please sign in to comment.