saasufy-components 5.1.0 → 5.1.1
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/input-provider.js +3 -7
- package/package.json +1 -1
package/input-provider.js
CHANGED
|
@@ -118,13 +118,6 @@ class InputProvider extends HTMLElement {
|
|
|
118
118
|
let inputProps = this.getAttribute('input-props');
|
|
119
119
|
let name = this.getAttribute('name');
|
|
120
120
|
|
|
121
|
-
if (name) {
|
|
122
|
-
inputProps = {
|
|
123
|
-
name,
|
|
124
|
-
...inputProps
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
121
|
let elementType;
|
|
129
122
|
if (type === 'select') {
|
|
130
123
|
elementType = 'select';
|
|
@@ -168,6 +161,9 @@ class InputProvider extends HTMLElement {
|
|
|
168
161
|
if (placeholder) {
|
|
169
162
|
this.inputElement.setAttribute('placeholder', placeholder);
|
|
170
163
|
}
|
|
164
|
+
if (name) {
|
|
165
|
+
this.inputElement.setAttribute('name', name);
|
|
166
|
+
}
|
|
171
167
|
if (inputProps) {
|
|
172
168
|
let {
|
|
173
169
|
fieldNames: attrNames,
|