{"id":19021862,"date":"2026-09-16T17:27:27","date_gmt":"2026-09-16T17:27:27","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/datepicker-not-initialised-when-in-popup\/"},"modified":"2026-09-16T17:27:27","modified_gmt":"2026-09-16T17:27:27","slug":"datepicker-not-initialised-when-in-popup","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/datepicker-not-initialised-when-in-popup\/","title":{"rendered":"Datepicker not initialised when in popup"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I have a form with a DatePicker field. It works correctly in preview and when the form is in a page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It does not work when I put it into a popup. I am using a Mai Popup block from <a href=\"https:\/\/bizbudding.com\/mai-theme\/\">BizBudding<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As a test I put the form inside a shortcode block within a &lt;dialog&gt; tag, to remove Mai Popup code from the equation. I have a &lt;button&gt; to open the &lt;dialog&gt; and the DatePicker field does not work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Strangely, in the browser console there is a warning about the intlTelInput module: <strong>Uncaught TypeError: can&#8217;t access property &#8220;getInstance&#8221;, m.intlTelInput is undefined<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My form does not have a telephone field, just a simple number field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What do I need to do to get DatePicker working in the popup?<\/p>\n","protected":false},"template":"","class_list":["post-19021862","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19021862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19021862\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19021862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}