MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / componentWillLoad

Method componentWillLoad

core/src/components/range/range.tsx:389–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387 };
388
389 componentWillLoad() {
390 /**
391 * If user has custom ID set then we should
392 * not assign the default incrementing ID.
393 */
394 if (this.el.hasAttribute('id')) {
395 this.rangeId = this.el.getAttribute('id')!;
396 }
397
398 this.inheritedAttributes = inheritAriaAttributes(this.el);
399 // If min, max, or step are not safe, set them to 0, 100, and 1, respectively.
400 // Each watch does this, but not before the initial load.
401 this.min = isSafeNumber(this.min) ? this.min : 0;
402 this.max = isSafeNumber(this.max) ? this.max : 100;
403 this.step = isSafeNumber(this.step) ? this.step : 1;
404 }
405
406 componentDidLoad() {
407 this.originalIonInput = this.ionInput;

Callers

nothing calls this directly

Calls 2

inheritAriaAttributesFunction · 0.90
isSafeNumberFunction · 0.90

Tested by

no test coverage detected