Fix for clicking outside a modal. All input fields are of type='text' by default.