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

Method totalNestedInputs

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

Source from the content-addressed store, hash-verified

181 }
182
183 private totalNestedInputs() {
184 // The following elements have a clickable cover that is relative to the entire item
185 const covers = this.el.querySelectorAll('ion-checkbox, ion-datetime, ion-select, ion-radio');
186
187 // The following elements can accept focus alongside the previous elements
188 // therefore if these elements are also a child of item, we don't want the
189 // input cover on top of those interfering with their clicks
190 const inputs = this.el.querySelectorAll(
191 'ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle'
192 );
193
194 // The following elements should also stay clickable when an input with cover is present
195 const clickables = this.el.querySelectorAll('ion-router-link, ion-button, a, button');
196
197 return {
198 covers,
199 inputs,
200 clickables,
201 };
202 }
203
204 // If the item contains multiple clickable elements and/or inputs, then the item
205 // should not have a clickable input cover over the entire item to prevent

Callers 2

setMultipleInputsMethod · 0.95
setIsInteractiveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected