You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vue2-datepicker version: 3.8.0 Vue version: 2.6.12 Browser: All
Steps to reproduce
Render page as an XHTML document by passing a "content-type" header with the value "application/xhtml+xml" from the server.
Expected behavior
Clicking on a date works
Actual behavior
Clicking on a date doesn't work.
in handleCellClick the function checks the tag name like so:
if (target.tagName === 'DIV') {
target = target.parentNode;
}
The problem is that in an xhtml document tag names don't become capitalized on their object representation, they remain in whatever case they were written in, so for me tagName was "div" not "DIV". You can mitigate this by doing a simple .toUpperCase() or something like that.
The text was updated successfully, but these errors were encountered:
Vue2-datepicker version: 3.8.0
Vue version: 2.6.12
Browser: All
Steps to reproduce
Render page as an XHTML document by passing a "content-type" header with the value "application/xhtml+xml" from the server.
Expected behavior
Clicking on a date works
Actual behavior
Clicking on a date doesn't work.
in
handleCellClick
the function checks the tag name like so:The problem is that in an xhtml document tag names don't become capitalized on their object representation, they remain in whatever case they were written in, so for me
tagName
was "div" not "DIV". You can mitigate this by doing a simple.toUpperCase()
or something like that.The text was updated successfully, but these errors were encountered: