Commit c1181e6c authored by Robert Schönthal's avatar Robert Schönthal Committed by GitHub
Browse files

add document check in case of ssr

parent 93dce5f9
......@@ -77,7 +77,7 @@ class mdDateTimePicker {
*/
this._sDialog = {}
// attach the dialog if not present
if (!document.getElementById('mddtp-picker__' + this._type)) {
if (typeof document !== 'undefined' && !document.getElementById('mddtp-picker__' + this._type)) {
this._buildDialog()
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment