forked from extern/egroupware
use et2-textbox instead of an input for et2-date* to inherit SL styling
This commit is contained in:
parent
888b518e9b
commit
b8ffa91efe
@ -19,6 +19,7 @@ import "flatpickr/dist/plugins/scrollPlugin.js";
|
|||||||
import {holidays} from "./Holidays";
|
import {holidays} from "./Holidays";
|
||||||
import flatpickr from "flatpickr";
|
import flatpickr from "flatpickr";
|
||||||
import {egw} from "../../jsapi/egw_global";
|
import {egw} from "../../jsapi/egw_global";
|
||||||
|
import {Et2Textbox} from "../Et2Textbox/Et2Textbox";
|
||||||
|
|
||||||
// Request this year's holidays now
|
// Request this year's holidays now
|
||||||
holidays(new Date().getFullYear());
|
holidays(new Date().getFullYear());
|
||||||
@ -334,7 +335,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
|||||||
...super.slots,
|
...super.slots,
|
||||||
input: () =>
|
input: () =>
|
||||||
{
|
{
|
||||||
const text = document.createElement('input');
|
const text = <Et2Textbox>document.createElement('et2-textbox');
|
||||||
text.type = "text";
|
text.type = "text";
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
@ -631,7 +632,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
|||||||
*/
|
*/
|
||||||
get _inputNode()
|
get _inputNode()
|
||||||
{
|
{
|
||||||
return /** @type {HTMLElementWithValue} */ (this.querySelector('input[type="text"]'));
|
return /** @type {HTMLElementWithValue} */ (this.querySelector('et2-textbox[type="text"]'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user