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
Datepicker: js error uncaught Extra/unparsed characters found in date (selectionMode="range") #4496
Comments
Attached is a runnable sample: Just run "mvn clean jetty:run-exploded" and navigate to http://localhost:8080/primefaces-test/test.xhtml It appears this is fixed in the upcoming 7.0 and most likely in 6.2.16. |
@mertsincan can you verify? |
Thanks @melloware , but if you use inline="true" property in your example, you'll see that the range given is not showed |
@majulvez Then you should have had inline in your example code above. I literally copied and pasted what you had. I just ran it with inline="true" and I still get no JS errors and my screen looks like this... |
I meant with your example no js errors is showed (not like in 6.2.15) but I still don't see that range selected. I've tested with chrome and firefox (last version). I told you about inline="true" because is easier to see the behaviour. This is what I see |
I selected that range by hand. So I guess the real bug here is that its not preselecting the dates from the backing beans values. That is the bug. |
Yes. That is what I was testing when I see the js error. It's wrote down in the expected behaviour in the issue. Thanks |
Right I was focused on that the JS Error was your problem. Not the fact its not preselecting the dates. @mertsincan this is definitely an issue you can test with my test case above. |
Hi @majulvez and @melloware, Could you please check my fix? Thanks a lot! |
Hi @mertsincan , I still don't see the dates preselected when the calendar is showed Thanks |
Hi,
Is this issue resolved? |
Yes. It works fine now. Thanks |
1) Environment
2) Expected behavior
Datepicker shows the range of dates selected in the calendar (today and tomorrow)
3) Actual behavior
Datepicker shows a javascript error 'Uncaught Extra/unparsed characters found in date: -5/02/19'
4) Steps to reproduce
Just load the .xhtml page and look in the web browser console
5) Sample XHTML
6) Sample bean
The text was updated successfully, but these errors were encountered: