Skip to content

Commit

Permalink
fix: fixed disabled submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed May 18, 2022
1 parent 11621b6 commit e1026bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/FormView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ const FormView = ({
primary
type="submit"
disabled={
(data.captcha?.provider && !captchaToken?.current) ||
(data.captcha_props?.provider &&
!captchaToken?.current) ||
formState.loading
}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import { useIntl, defineMessages } from 'react-intl';
import { submitForm } from '../actions';
import { getFieldName } from './utils';
import FormView from 'volto-form-block/components/FormView';
import FormView from './FormView';
import { formatDate } from '@plone/volto/helpers/Utils/Date';
import config from '@plone/volto/registry';

Expand Down

0 comments on commit e1026bc

Please sign in to comment.