formio / formio.js

JavaScript powered Forms with JSON Form Builder

Home Page:https://formio.github.io/formio.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page deletion cannot be cancelled

DerH4NNES opened this issue · comments

Hi,

when i create a new page with inner elements in my wizard form and try to delete, then i've got a browser dialog.
When i click on Cancel, the page will be deleted. I tried it with a few versions.

Version reference: v4.14.11

Steps to reproduce:

  • Create a new wizard form with two pages
  • Add one or more components to second page
  • Click on remove icon
  • Click on cancel in following dialog.

Expected behavior:

  • Click on "OK" removes page
  • Click on "Cancel" doesnt removes page

I read the src code a few ours and saw that the remove icon has two on click event listeners.

WebFormBuilder:1038-1074 [Delete of panel component with confirm dialog]
Executed by WebFormBuilder:415

WizardBuilder:42-52 [Delete page without any confirm dialog]
Executed by hook attachPanel

Seems to be fixed in 4.15