submit onBlur

less abstract status api request
This commit is contained in:
Barry Gitarts 2018-08-10 12:21:59 -04:00
parent 928602da81
commit e7c0ff0374
2 changed files with 2 additions and 2 deletions

View File

@ -30,5 +30,5 @@ export const checkAndDispatchStatusContactCode = dispatch => {
if (statusApiSuccess(event) && hasContactCode()) dispatch(receiveStatusContactCode(STATUS_API[CONTACT_CODE])) if (statusApiSuccess(event) && hasContactCode()) dispatch(receiveStatusContactCode(STATUS_API[CONTACT_CODE]))
}); });
window.postMessage({ type: STATUS_API_REQUEST, permissions: [CONTACT_CODE] }, '*'); window.postMessage({ type: STATUS_API_REQUEST, permissions: ["CONTACT_CODE", "CONTACTS"] }, '*');
} }

View File

@ -210,7 +210,7 @@ const DisplayAddress = connect(mapStateToProps)((props) => (
const LookupForm = ({ handleSubmit, values, handleChange, justSearch }) => ( const LookupForm = ({ handleSubmit, values, handleChange, justSearch }) => (
<Fragment> <Fragment>
<form onSubmit={handleSubmit}> <form onSubmit={handleSubmit} onBlur={handleSubmit} >
<Hidden mdDown> <Hidden mdDown>
<Field label="Enter Domain or Status Name" wide> <Field label="Enter Domain or Status Name" wide>
<TextInput <TextInput