File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
addon/components/collection-scroll-view Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { cached } from 'ember-cached-decorator-polyfill';
44import { tracked } from '@glimmer/tracking' ;
55import { action } from '@ember/object' ;
66import { next , schedule } from '@ember/runloop' ;
7+ import { assert as emberAssert } from '@ember/debug' ;
78import { ref } from 'ember-ref-bucket' ;
89
910/* A component which integrates a ScrollView with ember-collection */
@@ -128,6 +129,8 @@ export default class CollectionScrollView extends Component {
128129 if ( itemIndex >= 0 ) {
129130 let { y } = this . cellLayout . positionAt ( itemIndex ) ;
130131 scrollViewApi . scrollTo ( y + this . headerHeight , true ) ;
132+ } else {
133+ emberAssert ( `item with ID ${ id } not found` , false ) ;
131134 }
132135 }
133136}
You can’t perform that action at this time.
0 commit comments