@itrocks/template 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/template.js +1 -1
- package/esm/template.js +1 -1
- package/package.json +1 -1
package/cjs/template.js
CHANGED
@@ -617,7 +617,7 @@ class Template {
|
|
617
617
|
// end of attribute value
|
618
618
|
if (shortQuote ? (char === quote) : quote.includes(char)) {
|
619
619
|
const attributeValue = this.source.substring(position, this.index);
|
620
|
-
if (inInput &&
|
620
|
+
if (inInput && !hasTypeSubmit) {
|
621
621
|
hasTypeSubmit = (attributeChar === 't') && (attributeValue[0] === 's')
|
622
622
|
&& (attributeName === 'type') && (attributeValue === 'submit');
|
623
623
|
}
|
package/esm/template.js
CHANGED
@@ -612,7 +612,7 @@ export default class Template {
|
|
612
612
|
// end of attribute value
|
613
613
|
if (shortQuote ? (char === quote) : quote.includes(char)) {
|
614
614
|
const attributeValue = this.source.substring(position, this.index);
|
615
|
-
if (inInput &&
|
615
|
+
if (inInput && !hasTypeSubmit) {
|
616
616
|
hasTypeSubmit = (attributeChar === 't') && (attributeValue[0] === 's')
|
617
617
|
&& (attributeName === 'type') && (attributeValue === 'submit');
|
618
618
|
}
|
package/package.json
CHANGED