[Bug]: sbb-select
's current value doesn't always properly update
#3298
Labels
type: bug 🐛
Something isn't working
Preflight Checklist
Bug type
Functionality
It affects the following packages
Components
Which version of Lyne Components are you using
2.0.1
Operating system
any
Browser / Browser version
any
Input mode
None
Additional settings
No response
What happened?
We have a select in which the user can select a data version (similar to a git branch) they want to load data from. The default branch is called "default" by a different system, which we would like to change to "Hauptversion" or the other translations based on the browser language. If it's not the default version, it should just display the version's name (not internationalized).
Simplified it looks like this:
The problem: if we change the language (and the
currentLanguage
-signal updates), it will actually NOT change. Though the option element inside the dropdown actually updates!I'm honestly not sure if this is a Lyne problem or just some weird Angular change detection stuff happening. Sorry in case it's the latter. :)
Steps to reproduce the issue
Full Stackblitz repro: https://stackblitz.com/edit/angular-at-czthv9sx?file=src%2Fmain.ts
Click the de/fr/it buttons - the text in the paragraph will update as opposed to the text in the select, which is unexpected.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: