[ui] fix bug with input hiding behaviour