This causes updateDuration to be called twice when changing the duration input box locally.