You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I reading the source code, a question confuses me.
Why binding mask handlers on wrap element instand of mask element?
For example, the onMaskClick and onMaskMouseUp handlers.
// At the end of Dialog.tsx.return(<divclassName={`${prefixCls}-root`}>{this.getMaskElement()}<divtabIndex={-1}onKeyDown={this.onKeyDown}className={`${prefixCls}-wrap ${props.wrapClassName||''}`}ref={this.saveRef('wrap')}onClick={maskClosable ? this.onMaskClick : null}onMouseUp={maskClosable ? this.onMaskMouseUp : null}role="dialog"aria-labelledby={props.title ? this.titleId : null}style={style}{...props.wrapProps}>{this.getDialogElement()}</div></div>);
Very grateful if someone tell me the reason.
And, please forgive my fool question.
The text was updated successfully, but these errors were encountered:
While I reading the source code, a question confuses me.
Why binding mask handlers on wrap element instand of mask element?
For example, the
onMaskClick
andonMaskMouseUp
handlers.Very grateful if someone tell me the reason.
And, please forgive my fool question.
The text was updated successfully, but these errors were encountered: