-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IdsScrollView: incorrect controls after assigning a new array to ngFor #1577
IdsScrollView: incorrect controls after assigning a new array to ngFor #1577
Comments
@kellyFeng1 the pager button controls won't disappear automatically, but they are can be hidden/shown under whatever conditions you'd like to implement using the Can you pass along some information about the dataset (or the dataset itself) you're using? I'm also not clear on what you're trying to display per slide? Are you sometimes displaying multiple items per slide as opposed to one, similar to the SoHo circle pager? |
Lets see what @kellyFeng1 says but my assumption was that if an ngFor is updated it doesnt reflect in the component. Maybe need a slotchange ultimately similar to https://github.com/infor-design/enterprise-wc/pull/1661/files I think an option to hideIfOne would be ok (have to check if there is any with a similar name already for consistency). |
Hi @EdwardCoyle and @tmcconechy, yes we have similar case to this SoHo circle pager. I think the issue here is the control doesn't reflect the real slide number after ngFor is updated. If I tried to go to the third slide, the items displayed correctly, but the control will look like this. And if I click on the second dot, nothing happens. |
Describe the bug
we are using the ids-layout-grid inside an ids-scroll-view. When the screen size changes from mobile to desktop, we will assign a new array to the item2DArray as the number of items in one slide changes.
However, I just found when I assign a new array to the item2DArray when I am not in the first slide, the first circle button in the carousel will become blue like it automatically scrolls to the first slide, but the slide doesn't change.
before assigning
![image](https://private-user-images.githubusercontent.com/128092878/278157984-6c448425-118b-4f8a-9ee4-414200befa80.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxODY1MTIsIm5iZiI6MTcxOTE4NjIxMiwicGF0aCI6Ii8xMjgwOTI4NzgvMjc4MTU3OTg0LTZjNDQ4NDI1LTExOGItNGY4YS05ZWU0LTQxNDIwMGJlZmE4MC5w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2Y5M2RhYmNmNTg3YzNhZTA1YjBjY2YxNWNkYTQzZGY1NzhjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.aWYppuLyUNxcbAmlANri_OwTfAVBzdOg8cq1WeTkJg0)
after assigning a new array
HTML
Besides, also wondering if it is possible to remove the controls when there is only one slide.
Platform
The text was updated successfully, but these errors were encountered: