You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set confirmation before removing component of formio form builder. confirmation dialog showing but when i cancel its still remove component
#5541
Open
parmodkumarr opened this issue
Mar 20, 2024
· 2 comments
builder = await Formio.builder(document.getElementById('builder'), value, {})
builder.on('removeComponent', function(component) {
if (!confirm("Are you sure you want to remove this component?")) {
return false;
}
});
The text was updated successfully, but these errors were encountered:
parmodkumarr
changed the title
i have set confirmation before removing component of formio form builder. confirmation dialog showing but when i cancel its still remove component
I have set confirmation before removing component of formio form builder. confirmation dialog showing but when i cancel its still remove component
Mar 20, 2024
builder = await Formio.builder(document.getElementById('builder'), value, {})
builder.on('removeComponent', function(component) {
if (!confirm("Are you sure you want to remove this component?")) {
return false;
}
});
The text was updated successfully, but these errors were encountered: