You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nimble combo box and select components break when list options are tree-shaken. The nimble-list-option.module.ts does not import the list-option side-effects. Bundler optimizations will reduce named imports to direct deep imports, and remove any other code in a module.
# Pull Request
## 🤨 Rationale
Fixes#729. Nimble combo box and select components break when list
options are tree-shaken. The nimble-list-option.module.ts does not
import the list-option side-effects. Bundler optimizations will reduce
named imports to direct deep imports, and remove any other code in a
module.
## 👩💻 Implementation
Import list options with side-effects.
## 🧪 Testing
- Manually verified that combo box and select components work with
Angular 14
- Verified that the linter check passes
- Verified that automated tests pass
## ✅ Checklist
- [ ] I have updated the project documentation to reflect my changes or
determined no changes are needed.
🐛 Bug Report
Nimble combo box and select components break when list options are tree-shaken. The nimble-list-option.module.ts does not import the list-option side-effects. Bundler optimizations will reduce named imports to direct deep imports, and remove any other code in a module.
💻 Repro or Code Sample
npm run build
.npm run -w angular-workspace start
.🤔 Expected Behavior
The list option module should import side-effects with bundler optimization, so that associated components function properly.
😯 Current Behavior
With bundle optimization, combo box and select component options are not populated. They are present in the drop down, but no style nor selectable.
💁 Possible Solution
Fixed in #730. Consistent with the other modules, import list options with side-effects.
🔦 Context
Angular 14 includes improved bundle optimization.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: