You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to v5.7.0 you could do something like Adapt.scrollTo('.c-110 .component__feedback') - but the change from #2761 means this no longer works - as it now assumes you're trying to scroll to an 'Adapt element', so does Adapt.findById on it (to check if it has rendered and wait if not) - which fails as "c-110 .component__feedback" is obviously not a valid Adapt ID.
Possible solution: change parameter to selectorOrAdaptId and only perform the 'check if ready' code if the supplied parameter is an Adapt ID?
Side note: should also update the JSDoc comment for this to make it clear that it's a CSS 'class' selector that's required.
The text was updated successfully, but these errors were encountered:
moloko
changed the title
Adapt.nagivateToElement: assumes the selector parameter will always be an Adapt ID
Adapt.nagivateToElement: assumes the selector parameter will always refer to an 'Adapt Element'
Sep 25, 2020
moloko
changed the title
Adapt.nagivateToElement: assumes the selector parameter will always refer to an 'Adapt Element'
Adapt.scrollTo: assumes the selector parameter will always refer to an 'Adapt Element'
Sep 25, 2020
Prior to v5.7.0 you could do something like
Adapt.scrollTo('.c-110 .component__feedback')
- but the change from #2761 means this no longer works - as it now assumes you're trying to scroll to an 'Adapt element', so doesAdapt.findById
on it (to check if it has rendered and wait if not) - which fails as"c-110 .component__feedback"
is obviously not a valid Adapt ID.Possible solution: change parameter to
selectorOrAdaptId
and only perform the 'check if ready' code if the supplied parameter is an Adapt ID?Side note: should also update the JSDoc comment for this to make it clear that it's a CSS 'class' selector that's required.
The text was updated successfully, but these errors were encountered: