Closed archer3cl closed 7 years ago
@archer3cl
You are trying to bind to wrong DOM element.
When you set :wrap="true"
the date picker is bind to its parent element so you need to add ref
to input-group
instead.
<div class="input-group" ref="startDate">
And then you can get the datepicker instance like this.
let $startDate = $(this.$refs.startDate);
You can see updated js fiddle. https://jsfiddle.net/nev02jcf/9/
I'm submitting a ... (check one with "x")
Tell about your platform
Current behavior Linked Pickers does not have the has :wrap="true"
.data('DateTimePicker')
value (shown as undefined) if the elementExpected behavior Linked Pickers should work as in the example provided in the docs
Minimal reproduction of the problem with instructions Clean installation of the component. In the next fiddle pick start date first and then end date. Look console for errors https://jsfiddle.net/Archer3CL/nev02jcf/