How could I prevent dialog to close in callbackOk function?

 app.dialog.prompt('addNew', (name) => {
      if (!name) {
        //  prevent the dialog to close here.
        return false
      }
      this.props.addBoardRequest(this.props.course.id, name, (isJoinSuccess, data) => {
        
      })
    });

Thanks

You can’t prevent it. Use own custom dialog then using app.dialog.create method http://framework7.io/docs/dialog.html#dialog-methods-properties

1 Like