saasufy-components 6.0.1 → 6.0.2
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/README.md +1 -1
- package/input-provider.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -692,7 +692,7 @@ This component can be configured to provide its data to multiple components (con
|
|
|
692
692
|
- `autocapitalize`: Can be `on` or `off` - It will set the auto-capitalize attribute on the inner input element. This is useful for mobile devices to enable or disable auto-capitalization of the first character which is typed into the input element.
|
|
693
693
|
- `autocorrect`: Can be `on` or `off` - It will set the auto-correct attribute on the inner input element. This is useful for mobile devices to enable or disable auto-correct.
|
|
694
694
|
- `input-props`: Can be used to set additional attributes on the inner `input` element. Must be in the format `attr1=value1,attr2=value2`.
|
|
695
|
-
- `
|
|
695
|
+
- `skip-init-change`: This attribute can be used to prevent an `input-provider` of type `select` from triggering a change when initialized with a default option. By default, the `input-provider` will trigger a change when initialized with a default value.
|
|
696
696
|
|
|
697
697
|
### input-combiner
|
|
698
698
|
|
package/input-provider.js
CHANGED
|
@@ -194,7 +194,7 @@ class InputProvider extends HTMLElement {
|
|
|
194
194
|
let destroyHandlers = this.updateConsumerElementsOnEdit();
|
|
195
195
|
|
|
196
196
|
if (value) {
|
|
197
|
-
if (this.hasAttribute('
|
|
197
|
+
if (type === 'select' && !this.hasAttribute('skip-init-change')) {
|
|
198
198
|
this.forceTriggerChange = true;
|
|
199
199
|
}
|
|
200
200
|
this.value = value;
|