when an invalid option is detected, the buffer is cleared. But if you enter a valid option after that, it will be kept into the output property of the component.
Are you experiencing a different result? In that case please send me the project you're creating so we can check if there is something wrong...
Thanks,