This feature is still experimental and under two feature flags. This is a known UX quirk that happens because when you change a value from the UI Builder, it will reload the content of the UI Document. When the content is reloaded, new instances of visual elements will be created, which will not be the same as the previous ones.