Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion core-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,17 @@ <h2>Dialog</h2>
*/
autoCloseDisabled: false,

/**
* By default the autoClose listener will activate immediately. If
* you need to delay the auto-close (for example, if you wish to
* show the overlay in a hold event), you set this property to the
* number of milliseconds the listener should delay before attaching
* @attribute autoCloseEnableDelay
* @type number
* @default 0
*/
autoCloseEnableDelay: 0,

/**
* By default an overlay will focus its target or an element inside
* it with the `autoFocus` attribute. Disable this
Expand Down Expand Up @@ -378,7 +389,7 @@ <h2>Dialog</h2>
this.enableElementListener(this.opened, document,
this.captureEventName, 'captureHandler', true);
}
});
}, null, this.autoCloseEnableDelay);
this.enableElementListener(this.opened, window, 'resize',
'resizeHandler');

Expand Down