enterprise-wc icon indicating copy to clipboard operation
enterprise-wc copied to clipboard

IdsSplitter: Initializes late causing issue when calling function on it early.

Open pwpatton opened this issue 7 months ago • 0 comments

Describe the bug When calling function early on IdsSplitter it is sometime not yet initialized.

To Reproduce Steps to reproduce the behavior:

  1. Go to enterprise-wc-examples repo
  2. cd in the angular-ids-wc directory, npm install, npm run start
  3. 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 image

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.

pwpatton avatar Jul 11 '24 20:07 pwpatton