Small fix to Public Holiday input

This commit is contained in:
Pieter Vander Vennet 2020-10-23 02:26:14 +02:00
parent 950c69dd5e
commit 28e40d08ae

View file

@ -30,7 +30,7 @@ export default class PublicHolidayInput extends InputElement<string> {
);
this._dropdown = dropdown.SetStyle("display:inline-block;");
this._mode = dropdown.GetValue();
this.ListenTo(dropdown.GetValue());
this.ListenTo(this._mode);
const start = new TextField({
placeholder: "starthour",
@ -117,7 +117,7 @@ export default class PublicHolidayInput extends InputElement<string> {
if(str === "PH open"){
return {
mode: "open"
mode: " "
}
}