Topic: mdb-select hide after item chosen
tano pro asked 6 years ago
Damian Gemza staff answered 6 years ago
tano pro commented 6 years ago
Arkadiusz Idzikowski staff commented 6 years ago
Dear tano,
Glad you found a temporary workaround. When onPush strategy is active, Angular runs the change detection cycle only when one of components inputs change. The select component might work correctly when change detection is triggered somehow in the parent component, but there are still some things that we need to change on our end to make sure that every feature works without problems.
Regards,
Arek
Damian Gemza staff answered 6 years ago
tano pro commented 6 years ago
Dear Damien,
You're right! It was the changedetectionstrategy. However everything works as expected except the dropdown remains opened. The OnPush is the preferred way, so I've tried to call the detechChanges manually after selecting an item, but no success. I've had the same issue with datepicker and popups. Some workaround should be nice because I've a mobx statemanagement and for the better performance the onpush should be used.
Thanks
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: HP
- Browser: Chrome
- OS: Win10
- Provided sample code: No
- Provided link: No