Console
Console copied to clipboard
JS focus error when executing Receive-File
Steps to Reproduce
- Execute the Receive-File command
- Select a file and choose ok
- 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) - 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