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

Method componentDidLoad

core/src/components/select/select.tsx:359–371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

357 }
358
359 componentDidLoad() {
360 /**
361 * If any of the conditions that trigger the styleChanged callback
362 * are met on component load, it is possible the event emitted
363 * prior to a parent web component registering an event listener.
364 *
365 * To ensure the parent web component receives the event, we
366 * emit the style event again after the component has loaded.
367 *
368 * This is often seen in Angular with the `dist` output target.
369 */
370 this.emitStyle();
371 }
372
373 disconnectedCallback() {
374 if (this.mutationO) {

Callers

nothing calls this directly

Calls 1

emitStyleMethod · 0.95

Tested by

no test coverage detected