Skip to content

mgr/dashboard: fix-nvmeof-subsystem-create-firefox-next - #67769

Merged
nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-nvmeof-subsystem-create-firefox-next
Mar 17, 2026
Merged

nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-nvmeof-subsystem-create-firefox-next

Conversation

@sagargopale2233

@sagargopale2233 sagargopale2233 commented Mar 13, 2026 •

Copy link
Copy Markdown

mgr/dashboard: fix-nvmeof-subsystem-create-firefox-next

Fixes: https://tracker.ceph.com/issues/75434

Signed-off-by: Sagar Gopale [email protected]

Before

In Firefox, clicking Next in the NVMe/TCP Create Subsystem wizard could briefly show a blank/reset state and return users to the initial step instead of advancing to the next step.

After

The wizard now advances reliably to the next step in Firefox and Chrome, with no unexpected reset or navigation jump. Step progression is driven by reactive-form validation/state checks only.

PR Description

This PR fixes a Firefox-specific issue in the shared tearsheet step navigation used by the NVMe/TCP Create Subsystem flow.
The previous implementation triggered a native form submit event on Next, which could cause browser-dependent reset behavior.
The fix replaces that path with direct reactive-form validation/touched-state updates before advancing steps.
As a result, step navigation is now stable and consistent across browsers.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to know whats the error ?

@sagargopale2233

sagargopale2233 commented Mar 13, 2026 •

Copy link
Copy Markdown
Author

Would be better to know whats the error ?

@afreen23 in Firefox the issue was caused by the tearsheet’s native submit dispatch on Next (document.querySelector('form') + submit event), which could trigger a browser-specific reset/blank redirect instead of step navigation; this PR replaces that with reactive-form validation/state checks before advancing.

Error screencast :

Screencast.From.2026-03-13.15-22-30.mp4

The issue was in tearsheet.component.ts inside onNext() where we were triggering a native form submit:

document.querySelector('form') + dispatchEvent(new Event('submit', { bubbles: true }))

In Firefox, this submit path could reset the wizard view (blank/redirect back to first step) instead of moving to the next step.

@sagargopale2233

Copy link
Copy Markdown
Author

jenkins test make check arm64

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Mar 13, 2026
@nizamial09
nizamial09 merged commit 64f28c8 into ceph:main Mar 17, 2026
5 of 9 checks passed
@nizamial09
nizamial09 deleted the fix-nvmeof-subsystem-create-firefox-next branch March 17, 2026 06:41
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Mar 17, 2026
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 64f28c8306357ca0f67c48675c6f4ae840b4f702^..64f28c8306357ca0f67c48675c6f4ae840b4f702

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/23181887688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants