react-flatpickr icon indicating copy to clipboard operation
react-flatpickr copied to clipboard

Conjunction config option not working when set to "\n"

Open jakeparis opened this issue 1 year ago • 0 comments

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 );
		},
	}}
/>

jakeparis avatar Apr 06 '23 19:04 jakeparis