diff --git a/ace-loader/plugin/templater/component_validator.js b/ace-loader/plugin/templater/component_validator.js index 93ca88b..becd803 100644 --- a/ace-loader/plugin/templater/component_validator.js +++ b/ace-loader/plugin/templater/component_validator.js @@ -656,7 +656,7 @@ function inputLite(tagName, domNodeAttrs, domNodeAttrName, log, nodeLoc) { } function isMatchChange(typeValue, nodeAttrName) { - return !['checkbox', 'radio'].includes(typeValue) && (nodeAttrName.includes('onchange') || nodeAttrName.includes('@change')) + return !['checkbox', 'password', 'radio', 'text'].includes(typeValue) && (nodeAttrName.includes('onchange') || nodeAttrName.includes('@change')) } function ismatchIfAndFor(nodeAttrName) { diff --git a/ace-loader/plugin/templater/lite_component_map.js b/ace-loader/plugin/templater/lite_component_map.js index 3d7089c..fd59686 100644 --- a/ace-loader/plugin/templater/lite_component_map.js +++ b/ace-loader/plugin/templater/lite_component_map.js @@ -212,10 +212,14 @@ const litewearableTag = { enum: ['false', 'true'], }, type: { - enum: ['button', 'checkbox', 'radio'], + enum: ['button', 'checkbox', 'password', 'radio', 'text'], }, name: {}, value: {}, + placeholder: {}, + maxlength: { + checkFunc: 'number', + }, }, }, 'slider': {