Skip to content

New Folder workflow breaks when user clicks outside of dropdown #13673

@rodrigosf672

Description

@rodrigosf672

Summary

  1. User clicks anywhere outside the orange boxes in the third/final step of the 'New Folder' workflow
  2. 'New Folder From Template' dialog disappears entirely

(Obs.: see Note for Triage below)

Image Image

System details:

Positron and OS details:

Version: Positron Version: 2026.06.0 build 113
Code - OSS Version: 1.111.0
Commit: 8e13213c1debd76b5f0fa2ee3fb2f418e3c7fdeb
Date: 2026-05-19T17:52:52-06:00
Commit: 39.6.0
Date: 142.0.7444.265
Electron: 22.22.0
ElectronBuildId: 14.2.231.22-electron.0
Chromium: Darwin arm64 25.4.0
Node.js: undefined
V8: undefined
OS: undefined

Describe the issue:

New Folder workflow breaks when user clicks outside of dropdown. It happens for any of the 3 first templates (i.e., Python, R, or Jupyter Notebook). It breaks the initial workflow of the user.

Steps to reproduce the issue:

  1. Open Positron.

  2. Click New Folder.

  3. Select any of the first 3 folder templates:

    • Python Project
    • R Project
    • Jupyter Notebook
    Underlying input element
    <input
      class="folder-template-input"
      id="[X]"
      tabindex="0"
      type="radio"
      value="Python Project"
      name="templateType"
    >

    Where X is:

    • Python Project
    • R Project
    • Jupyter Notebook
  4. Click Next.

    Underlying button element
    <button
      class="positron-button action-bar-button default"
      role="button"
      tabindex="0"
      type="button"
    >
      Next
    </button>
  5. Enter a folder name.

    Underlying input element
    <input
      class="text-input"
      maxlength="229"
      type="text"
      value="Y"
    >

    Where Y = [project name].

  6. Click Next.

  7. Click on either dropdown:

    • Environment creation dropdown
    • Python version dropdown
    Environment creation dropdown element
    <button
      class="positron-button drop-down-list-box"
      role="button"
      tabindex="0"
      type="button"
    >
      <div class="title">
        <div class="dropdown-entry">
          <div class="dropdown-entry-title">uv</div>
          <div class="dropdown-entry-subtitle">
            Use uv to find a Python version locally (or install it if needed)
            for the new environment
          </div>
        </div>
      </div>
    
      <div aria-hidden="true" class="chevron">
        <div class="codicon codicon-chevron-down"></div>
      </div>
    </button>
    Python version dropdown element
    <button
      class="positron-button drop-down-list-box"
      role="button"
      tabindex="0"
      type="button"
    >
      <div class="title">
        <div class="dropdown-entry" title="">
          <div class="dropdown-entry-title">Python 3.14</div>
          <div class="dropdown-entry-subtitle"></div>
          <div class="dropdown-entry-group">uv</div>
        </div>
      </div>
    
      <div aria-hidden="true" class="chevron">
        <div class="codicon codicon-chevron-down"></div>
      </div>
    </button>
  8. Click anywhere outside of the dropdown options, either inside or outside of the dialog modal.

  9. Notice that the dialog (class="flow-step") disappears entirely and the workflow is lost.

Expected or desired behavior

Users should be able to dismiss an opened dropdown by clicking outside of it without closing the parent dialog or losing workflow state, including while interacting outside the modal during dropdown selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions