2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-11 03:32:26 +03:00

fix: click event compatible with xhtml

This commit is contained in:
mengxiong10
2020-11-26 10:55:11 +08:00
parent fb223b9d52
commit 3571795b59
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ export default {
},
handleCellClick(evt) {
let { target } = evt;
if (target.tagName === 'DIV') {
if (target.tagName.toUpperCase() === 'DIV') {
target = target.parentNode;
}
const date = target.getAttribute('data-date');
+1 -1
View File
@@ -89,7 +89,7 @@ export default {
},
handleClick(evt) {
let { target } = evt;
if (target.tagName === 'DIV') {
if (target.tagName.toUpperCase() === 'DIV') {
target = target.parentNode;
}
const month = target.getAttribute('data-month');
+1 -1
View File
@@ -92,7 +92,7 @@ export default {
},
handleClick(evt) {
let { target } = evt;
if (target.tagName === 'DIV') {
if (target.tagName.toUpperCase() === 'DIV') {
target = target.parentNode;
}
const year = target.getAttribute('data-year');