Commit a7f001a
authored
Update how isLast is set when data is updated (#330)
* Update how isLast is set when data is updated
Check if the current slide should be the last slide when dataStream is updated.
This fixes an issue where the dataStream is updated but the carousel
slides do not move. In the current state, isLast will incorrectly be set
to false. With these changes, isLast will stay false if the carousel is
still on the last slide after the data updates
Co-authored-by: Rehan Alam <[email protected]>1 parent d77197d commit a7f001a
File tree
1 file changed
+1
-1
lines changed- projects/ngu-carousel/src/lib/ngu-carousel
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments