Prevent DOM JS error from firing on view re-render with a submit/button input focused