Removed an unnecessary "start" variable in the constructor of the JavaScript MonthTab class.
This commit is contained in:
parent
73f5d63f44
commit
d5a9e1af18
@ -166,10 +166,9 @@ class MonthTab extends TabPlane {
|
||||
super(chooser);
|
||||
const monthChooser = document.getElementById(`${this.prefix}-chooser`);
|
||||
if (monthChooser !== null) {
|
||||
let start = monthChooser.dataset.start;
|
||||
this.#monthChooser = new tempusDominus.TempusDominus(monthChooser, {
|
||||
restrictions: {
|
||||
minDate: new Date(start),
|
||||
minDate: new Date(monthChooser.dataset.start),
|
||||
},
|
||||
display: {
|
||||
inline: true,
|
||||
|
Loading…
Reference in New Issue
Block a user