Light component behaviour state/brightness

Hi all! I have a question about the light component, especially about state and brightness behaviour.
Every time when I set the brightness to 0, state is automatically going to OFF (which is OK) but in the same time brightness value is set to 255. Is this a bug or done intentionally ?
In my opinion brightness should stay unchanged in this situation.

Any suggestions?