mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
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 flatpickr from "flatpickr";
|
||||
import {egw} from "../../jsapi/egw_global";
|
||||
import {Et2Textbox} from "../Et2Textbox/Et2Textbox";
|
||||
|
||||
// Request this year's holidays now
|
||||
holidays(new Date().getFullYear());
|
||||
@ -334,7 +335,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
||||
...super.slots,
|
||||
input: () =>
|
||||
{
|
||||
const text = document.createElement('input');
|
||||
const text = <Et2Textbox>document.createElement('et2-textbox');
|
||||
text.type = "text";
|
||||
return text;
|
||||
}
|
||||
@ -631,7 +632,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
||||
*/
|
||||
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