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);
|
super(chooser);
|
||||||
const monthChooser = document.getElementById(`${this.prefix}-chooser`);
|
const monthChooser = document.getElementById(`${this.prefix}-chooser`);
|
||||||
if (monthChooser !== null) {
|
if (monthChooser !== null) {
|
||||||
let start = monthChooser.dataset.start;
|
|
||||||
this.#monthChooser = new tempusDominus.TempusDominus(monthChooser, {
|
this.#monthChooser = new tempusDominus.TempusDominus(monthChooser, {
|
||||||
restrictions: {
|
restrictions: {
|
||||||
minDate: new Date(start),
|
minDate: new Date(monthChooser.dataset.start),
|
||||||
},
|
},
|
||||||
display: {
|
display: {
|
||||||
inline: true,
|
inline: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user