From 8ba61ffe363e6909a63fef8b15eccdec0b0e3096 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Mon, 6 Feb 2023 12:08:33 +0100 Subject: [PATCH] fixed bugs with selection and time input --- ccp/js/inputwidgeteditorcontroller.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ccp/js/inputwidgeteditorcontroller.js b/ccp/js/inputwidgeteditorcontroller.js index eca77ea..9e1e250 100644 --- a/ccp/js/inputwidgeteditorcontroller.js +++ b/ccp/js/inputwidgeteditorcontroller.js @@ -29,7 +29,7 @@ class CCPInputWidgetEditorController extends HTMLElement{ }else if(this.#input.schema.format === "date"){ return "date" }else if(this.#input.schema.format === "time"){ - return "type" + return "time" }else if(this.#input.schema.format === "dateTime"){ return "dateTime" } @@ -37,7 +37,7 @@ class CCPInputWidgetEditorController extends HTMLElement{ } isSelectedFormat(fmt){ - return this.#input.schema.format === fmt ? 'selected="selected"' : "" + return this.#input.schema.format === fmt } render(input, i){ @@ -93,13 +93,13 @@ class CCPInputWidgetEditorController extends HTMLElement{
@@ -119,7 +119,7 @@ class CCPInputWidgetEditorController extends HTMLElement{
- 👁 + 👁
@@ -195,4 +195,4 @@ class CCPInputWidgetEditorController extends HTMLElement{ } } -window.customElements.define('d4s-ccp-input-editor', CCPInputWidgetEditorController); \ No newline at end of file +window.customElements.define('d4s-ccp-input-editor', CCPInputWidgetEditorController);