MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / setIsInteractive

Method setIsInteractive

core/src/components/item/item.tsx:218–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 }
217
218 private setIsInteractive() {
219 // If item contains any interactive children, set isInteractive to `true`
220 const { covers, inputs, clickables } = this.totalNestedInputs();
221
222 this.isInteractive = covers.length > 0 || inputs.length > 0 || clickables.length > 0;
223 }
224
225 // slot change listener updates state to reflect how/if item should be interactive
226 private updateInteractivityOnSlotChange = () => {

Callers 2

componentDidLoadMethod · 0.95
ItemClass · 0.95

Calls 1

totalNestedInputsMethod · 0.95

Tested by

no test coverage detected