openanthem / nimbus-core

Getting Starting with NIMBUS-CORE
https://anthemopensource.atlassian.net/wiki/spaces/OSS/pages/157024674/Quickstart+Guide
Apache License 2.0
10 stars 49 forks source link

Pop-up Modal is not getting close. #717

Open kchsravanthi opened 4 years ago

kchsravanthi commented 4 years ago

Issue Details

Pop-up Modal is not getting close. When a error alert is coming in popup modal form after closing error alert when we are trying to close popup modal not getting closed first time.

Type of Issue (check one with "X") Bug/Defect

Current Behavior

When a error alert is coming inside the popup modal form after closing error alert when we are trying to close popup modal not getting closed first time. Pop modal is getting closed second time.

Expected Behavior

When a error alert is coming in popup modal form after closing error alert when we are trying to close popup modal should be closed immediately.

How to Reproduce the Issue

Steps to Reproduce

1)Create a form 2)Create popup modal form 3)Click button to open popup modal 4)Enter any invalid input to show error alert 5)Close error alert 6)Close Popup Modal(Not getting closed first time)

Code Snippet

Popup Modal creation @Modal(closable = true) @Label(value = "Add") private SampleModal SampleModal; @Model @Getter @Setter public static class SampleModal { @Config(url = "<!#this!>/../_process?fn=_setByRule&rule=togglemodal") @Button(style = Button.Style.PLAIN, type = Button.Type.button) Screen shots.docx private String closeModal; } PopupModal Form
@Model @Getter @Setter @MapsTo.Type(Sample.class) public static class SampleModalForm { @Path @FileUpload(url="sampleurl", metaData="",type= ".png,", cssClass="oneColumn") private String info; @Button @Label(value = "Submit") private String add; }}

Environment Details

Sruthilayach commented 4 years ago

Pop-up modal is getting closed. Issue was replicated ,as observed there was no issues .