Skip to content

Commit 0f0683c

Browse files
authored
Remove data-use-datetime-picker attribute from command forms (#1391)
Flatpickr was a polyfill for browsers lacking native support for `<input type="datetime-local">`, but Firefox and Safari have since added native support, so the polyfill never activates anymore.
1 parent b7da98f commit 0f0683c

4 files changed

Lines changed: 0 additions & 5 deletions

File tree

application/forms/Command/Object/AcknowledgeProblemForm.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ protected function assembleElements()
152152
'localDateTime',
153153
'expire_time',
154154
[
155-
'data-use-datetime-picker' => true,
156155
'required' => true,
157156
'value' => $expireTime,
158157
'label' => t('Expire Time'),

application/forms/Command/Object/AddCommentForm.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ protected function assembleElements()
108108
'localDateTime',
109109
'expire_time',
110110
[
111-
'data-use-datetime-picker' => true,
112111
'required' => true,
113112
'value' => $expireTime,
114113
'label' => t('Expire Time'),

application/forms/Command/Object/ScheduleCheckForm.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ protected function assembleElements()
7575
'localDateTime',
7676
'check_time',
7777
[
78-
'data-use-datetime-picker' => true,
7978
'required' => true,
8079
'label' => t('Check Time'),
8180
'description' => t('Set the date and time when the check should be scheduled.'),

application/forms/Command/Object/ScheduleServiceDowntimeForm.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ protected function assembleElements()
120120
'localDateTime',
121121
'start',
122122
[
123-
'data-use-datetime-picker' => true,
124123
'required' => true,
125124
'value' => $this->start,
126125
'label' => t('Start Time'),
@@ -133,7 +132,6 @@ protected function assembleElements()
133132
'localDateTime',
134133
'end',
135134
[
136-
'data-use-datetime-picker' => true,
137135
'required' => true,
138136
'label' => t('End Time'),
139137
'description' => t('Set the end date and time for the downtime.'),

0 commit comments

Comments
 (0)