JS Dialog: Click in second time dialog does not call callback function

fix dialog does not show when using multi native dialog on app.