Skip to content

JS focus error when executing Receive-File #1366

@TommyWillard-XC

Description

@TommyWillard-XC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions