Bug 30718: Prevent 'reset' icon to appear twice
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
41a1806143
commit
97a4b3c61d
|
|
@ -49,7 +49,7 @@
|
|||
},
|
||||
onReady: function( selectedDates, dateStr, instance ){
|
||||
/* When flatpickr instance is created, automatically append a "clear date" link */
|
||||
$(instance.input).siblings('input.flatpickr')
|
||||
$(instance.input).find('~input.flatpickr:first')
|
||||
/* Add a wrapper element so that we can prevent the clear button from wrapping */
|
||||
.wrap("<span class='flatpickr_wrapper'></span>")
|
||||
.attr("autocomplete", "off")
|
||||
|
|
|
|||
Loading…
Reference in New Issue