enterprise-wc
enterprise-wc copied to clipboard
IdsSplitter: Initializes late causing issue when calling function on it early.
Describe the bug When calling function early on IdsSplitter it is sometime not yet initialized.
To Reproduce Steps to reproduce the behavior:
- Go to
enterprise-wc-examples
repo - cd in the
angular-ids-wc
directory, npm install, npm run start - Go to http://localhost:4200/ids-splitter/init-issue
In the init-issues.component.ts example notice in ngAfterViewInit I try calling idsSplitter.collapse() but it fails because the IdsSplitter #initObserverCallback
had not yet been executed
Expected behavior Can call collapse at this point and it succeeds
Version
- ids-enterprise-wc: 1.3.0
Screenshots
Platform
- Infor Application/Team Name: Landmark
- OS Version: Windows 11
- Browser Name: chrome
- Browser Version: latest
Additional context Add any other context about the problem here.