feat: Auto move to the next question (#324)
* move to the next question * remove console * minor changes * updated the confetti timeout * updated the button --------- Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
function handleFormSubmit(event) {
|
||||
if (isPreview) return;
|
||||
const values = getVal(event.target, name);
|
||||
onSubmit(name, values, nextButtonProps.isActive);
|
||||
onSubmit(name, values);
|
||||
event.target.reset();
|
||||
}
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
variant={nextButtonProps.isActive ? VARIANTS.CONTAINED : VARIANTS.OUTLINED}
|
||||
type="submit"
|
||||
label={nextButtonProps.label}
|
||||
isDisabled={nextButtonProps.isDisabled}
|
||||
{name}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
function handleFormSubmit(event) {
|
||||
if (isPreview) return;
|
||||
const value = getRadioVal(event.target, name);
|
||||
onSubmit(name, [value], nextButtonProps.isActive);
|
||||
onSubmit(name, [value]);
|
||||
event.target.reset();
|
||||
}
|
||||
|
||||
@@ -136,6 +136,7 @@
|
||||
variant={nextButtonProps.isActive ? VARIANTS.CONTAINED : VARIANTS.OUTLINED}
|
||||
type="submit"
|
||||
label={nextButtonProps.label}
|
||||
isDisabled={nextButtonProps.isDisabled}
|
||||
{name}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
function handleFormSubmit(event) {
|
||||
if (isPreview) return;
|
||||
|
||||
onSubmit(name, defaultValue, true);
|
||||
onSubmit(name, defaultValue);
|
||||
// event.target.reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user