Light widget binding lost when changing type

Recreate:

Search for existing item
select a light
Light widget only option. Select it.
Change Type from Dimmer to Switch.
The binding under State field goes yellow with no state detected.
Have to remove light and immediately click bind to add it back again. Light widget then works as expected.