react-flatpickr
react-flatpickr copied to clipboard
Conjunction config option not working when set to "\n"
When I set the conjunction
config item to "\n"
, it isn't properly applied in between the items. If I set another value, say "xxx"
or "|"
, those are applied as expected.
I would like to use "\n"
as the conjunction so that I can print the dates into a textarea element with each date on one line.
This does work using vanilla FlatPickr, so the problem seems to be in the React component.
<Flatpickr ref={fp}
style={{display:'none'}}
value={ eventDates }
options={{
mode: "multiple",
conjunction: "\n",
onChange: function( selectedDates, dateStr ){
updateDatesFromString( dateStr );
},
}}
/>