-
Notifications
You must be signed in to change notification settings - Fork 200
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
Doesn't render correctly when its loaded with [hidden] #202
Comments
@cerkiner I think you need to use *ngIf instead of [hidden]. hidden attribute basically just adds the display:none to the DOM elements so the elements actually already exist. But I guess the underlying Swiper control needs to do some calculation for the DOM element width and offset, so it can't get proper result using the hidden elements. While ngIf generates the DOM elements completely, so no such issue. |
hi @twinssbc I am using [ngIf]="uploadEvent == 'yes'" condition on ng-template. the calendar is not loading with day events. it loads if i remove ngIf condition. |
@shalini-github if that's the case, I think it's related to your ngIf condition, uploadEvent == 'yes'. |
I have two div elements one with calendar, ng-template. other one with some labels. ngIf condition is simple and the calendar div comes blank when i click on the segmentbutton. not sure what i'm missing here. please see my below sample code and screenshot
|
On my use case, I need it to appear on certain event triggers, I am using [hidden] to render and load the events on page load and then I am programmatically making it visible when it is necessary. When it is visible the swipe, click and tap don't work and the styles are not the same with initially loaded version.
The text was updated successfully, but these errors were encountered: