Default selection of dropdown is not retained if condition to update the value/selection is added.