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);