Documentation update needed - uppy.requestCloseModal is not a function

On this page:

This code sample is not correct and will trigger JS console errors as there is no such function nor method

  doneButtonHandler: () => {
    this.uppy.cancelAll()
    this.requestCloseModal()
  },

instead, I suspect the example should show

  doneButtonHandler: () => {
    this.uppy.cancelAll()
    this.uppy.getPlugin('MY_DASHBOARD_NAME').closeModal();
  },

This was the only way I was able to trigger the modal.
Seems to me that “Uppy.requestCloseModal();” is no longer a function in 3.3.1

it should be noted I am using a custom function as follows

doneButtonHandler: () => { onDoneClick(); },

onDoneClick = function (files) {
    uppy.cancelAll();
    uppy.getPlugin('DashboardProofUpload').closeModal();
	if($('#user_completed').val() > 0) { 
          // do custom js form Validator stuff here with _files
          // tell user to upload missing stuff, show errors, ect...
         }
}

Related errors:

Uncaught TypeError: uppy.reset is not a function
Uncaught TypeError: Cannot read properties of undefined (reading 'uppy')
Uncaught TypeError: uppy.requestCloseModal is not a function