Bug 1563080 - Ignore change events from repeat-until datepicker until load completes; r=Fallen DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Thu, 04 Jul 2019 21:04:39 +1200
changeset 36029 b48185ee97e6bf8494e60f10f69df0f49affa083
parent 36028 56961a825e639c25fcb980603cf4fef0c3c79461
child 36030 2a299189d89023de2a2a37a97815c9ee3f01867a
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersFallen
bugs1563080
Bug 1563080 - Ignore change events from repeat-until datepicker until load completes; r=Fallen DONTBUILD
calendar/lightning/content/lightning-item-iframe.xul
--- a/calendar/lightning/content/lightning-item-iframe.xul
+++ b/calendar/lightning/content/lightning-item-iframe.xul
@@ -419,17 +419,17 @@
             <hbox id="repeat-untilDate" align="center">
                 <label value="&event.until.label;"
                        accesskey="&event.until.accesskey;"
                        control="repeat-until-datepicker"
                        disable-on-readonly="true"/>
                 <datepicker id="repeat-until-datepicker" flex="1"
                             type="forever"
                             disable-on-readonly="true"
-                            onchange="checkUntilDate();"
+                            onchange="if (onLoad.hasLoaded) { checkUntilDate(); }"
                             value=""/>
             </hbox>
             <vbox id="repeat-details" flex="1">
                 <label id="repeat-details-label"
                        class="text-link"
                        crop="right"
                        disable-on-readonly="true"
                        hyperlink="true"