Persist changes when input field loses focus

* Only bind focusout event to input field when we show it