Skip to content

Commit cc7a436

Browse files
committed
fix eslint restspread error
1 parent 53d3867 commit cc7a436

File tree

3 files changed

+8
-34
lines changed

3 files changed

+8
-34
lines changed

.eslintrc.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ module.exports = {
55
"commonjs": true,
66
"es6": true,
77
"jquery": false,
8-
mocha: true
8+
"mocha": true
99
},
1010
"extends": "eslint:recommended",
1111
"parserOptions": {
12-
"sourceType": "module"
12+
"sourceType": "module",
13+
"ecmaVersion": 6,
14+
"ecmaFeatures": {
15+
"experimentalObjectRestSpread": true
16+
}
1317
},
1418
"plugins": [
1519
"html"

src/fields/abstractDateField.js

-30
This file was deleted.

src/fields/fieldDateTimePicker.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
let input = this.$el.querySelector(".form-control");
3535
$(this.$el).datetimepicker(defaults(this.schema.dateTimePickerOptions || {}, {
3636
format: inputFormat
37-
})).on("dp.change", e => {
38-
this.value = this.$el.querySelector(".form-control").value;
37+
})).on("dp.change", () => {
38+
this.value = input.value;
3939
});
4040
} else {
4141
console.warn("Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!");

0 commit comments

Comments
 (0)