Open ChristianGreinke opened 2 years ago
This code line creates a wrongly formated selector for document.querySelector and results into a DOMException
https://github.com/adopted-ember-addons/ember-pikaday/blob/19366ea66e9037fe9410c65369e9bb796a4b5ed6/addon/helpers/pikaday.js#L40
for example day=5 gives
'td[data-day="'5'"]:not(.is-outside-current-month) button}'
which is wrong in two places the last } is too much and encasing the day placeholder with ' also brakes the selector. The right code line could look like this
`td[data-day="${day}"]:not(.is-outside-current-month) button`
This code line creates a wrongly formated selector for document.querySelector and results into a DOMException
https://github.com/adopted-ember-addons/ember-pikaday/blob/19366ea66e9037fe9410c65369e9bb796a4b5ed6/addon/helpers/pikaday.js#L40
for example day=5 gives
which is wrong in two places the last } is too much and encasing the day placeholder with ' also brakes the selector. The right code line could look like this