fix: Changing select open
property errors
#5586
Labels
bug
A bug
community:request
Issues specifically reported by a member of the community.
status:needs-investigation
Needs additional investigation
🐛 Bug Report
Changing the value of the open property results in an error in the select control.
When creating a control programmatically and setting the open property, the following codepath is triggered:
fast/packages/web-components/fast-foundation/src/select/select.ts
Line 39 in b8e71f2
Resulting in error:
💻 Repro or Code Sample
Stackblitz: https://stackblitz.com/edit/typescript-q93mmy
🤔 Expected Behavior
Expect to be able to manipulate property values before an element has been connected to the DOM.
😯 Current Behavior
Manipulating the open property on Select results in an error.
💁 Possible Solution
Curious what approaches there are to protect this kind of situation. Seems like tests for setting properties programmatically may be useful.
🔦 Context
Tried to update to latest FAST. We have some tests where we copied the fixture.ts and the following fixture started to fail:
where setup is called as
setup('above', true);
🌍 Your Environment
The text was updated successfully, but these errors were encountered: