fixing a bug  where the select-input tried to update its options before it had been rendered