Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jakeparis opened this issue Apr 6, 2023 · 0 comments
Open

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

jakeparis opened this issue Apr 6, 2023 · 0 comments

Comments

@jakeparis
Copy link

jakeparis commented Apr 6, 2023

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 );
		},
	}}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant