@jetbrains/ring-ui 6.0.69 → 6.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -130,7 +130,7 @@ export default class Dialog extends PureComponent {
|
|
|
130
130
|
</div>
|
|
131
131
|
</>);
|
|
132
132
|
if (native) {
|
|
133
|
-
return (<dialog className={classNames(styles.nativeDialog, className)} ref={this.nativeDialog}>
|
|
133
|
+
return (<dialog className={classNames(styles.nativeDialog, className)} ref={this.nativeDialog} data-rg-modal-dialog-container={modal ? '' : undefined}>
|
|
134
134
|
<PopupTarget id={this.uid} className={styles.popupTarget}>
|
|
135
135
|
{target => (<>
|
|
136
136
|
{content}
|
|
@@ -152,7 +152,7 @@ export default class Dialog extends PureComponent {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
return createPortal(<PopupTarget id={this.uid} className={styles.popupTarget}>
|
|
155
|
-
{target => (<TabTrap trapDisabled={!trapFocus} data-test={dataTests('ring-dialog-container', dataTest)} ref={this.dialogRef} className={classes} role="presentation" {...restProps}>
|
|
155
|
+
{target => (<TabTrap trapDisabled={!trapFocus} data-test={dataTests('ring-dialog-container', dataTest)} data-rg-modal-dialog-container="" ref={this.dialogRef} className={classes} role="presentation" {...restProps}>
|
|
156
156
|
{content}
|
|
157
157
|
{target}
|
|
158
158
|
</TabTrap>)}
|
|
@@ -54,7 +54,12 @@ export default class UserAgreementService {
|
|
|
54
54
|
userConsent = DEFAULT_CONSENT;
|
|
55
55
|
intervalId;
|
|
56
56
|
startChecking = () => {
|
|
57
|
-
this.intervalId = window.setInterval(this.checkConsentAndShowDialog
|
|
57
|
+
this.intervalId = window.setInterval(() => this.checkConsentAndShowDialog().catch(reason => {
|
|
58
|
+
if (reason === 'Postponed') {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
throw reason;
|
|
62
|
+
}), this.interval);
|
|
58
63
|
window.addEventListener('storage', this.onStorageEvent);
|
|
59
64
|
this.checkConsentAndShowDialog();
|
|
60
65
|
};
|