Console icon indicating copy to clipboard operation
Console copied to clipboard

JS focus error when executing Receive-File

Open TommyWillard-XC opened this issue 7 months ago • 0 comments

Steps to Reproduce

  1. Execute the Receive-File command
  2. Select a file and choose ok
  3. See error in browser console

    TypeError: Cannot read properties of undefined (reading 'focus') at HTMLIFrameElement. (JqueryModalDialogs.html:284:46) at HTMLIFrameElement.dispatch (jquery-3.6.3.js:5494:27) at elemData.handle (jquery-3.6.3.js:5298:28) at HTMLBodyElement. (jquery-3.6.3.js:6324:12) at domManip (jquery-3.6.3.js:6154:14) at jQuery.fn.init.append (jquery-3.6.3.js:6321:10) at V..._destroy (jquery-ui.min.js:6:161488) at a. [as _destroy] (jquery-ui.min.js:6:1122) at V...destroy (jquery-ui.min.js:6:3518) at V...remove (jquery-ui.min.js:6:3017)

  4. Path returned is "cancel" instead of valid file path

Example of usage

$dataFolder = [Sitecore.Configuration.Settings]::DataFolder
$assetsFolder = $dataFolder + "/assets"
$filePath = Receive-File -Path $assetsFolder -overwrite -Title "CSV Upload"

Environment Details

  • SPE Version: 7.0.0.38088
  • Sitecore Version: 10.3
  • PowerShell Version: 5.1

TommyWillard-XC avatar May 07 '25 00:05 TommyWillard-XC