Skip to content

Mantine: node props render a button inside a button - #41

Open
cherepanov wants to merge 4 commits into
masterfrom
7-bug-mantine-node-props-render-a-button-inside-a-button
Open

cherepanov wants to merge 4 commits into
masterfrom
7-bug-mantine-node-props-render-a-button-inside-a-button

Conversation

@cherepanov

@cherepanov cherepanov commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the nested-slot component picker with a non-<button> control and open it on pointerdown so it works inside HTML5 drag hosts (e.g. MtButton sections).
  • Enable leftSection / rightSection as node on MtButton.
  • Select nested editable nodes on pointerdown so HTML5 drag does not cancel the click.
  • Closes [Bug] Mantine: node props render a button inside a button #7

Packages affected

  • @react-form-builder/designer
  • @react-form-builder/components-mantine

Checklist

  • I followed CONTRIBUTION.md and CONTRIBUTING.md
  • I ran npm run check-all locally (or explain why not) — not run for this draft PR open; focused component coverage is in tests/component/tests/node-picker-in-button.spec.tsx
  • Tests updated/added under tests/ when appropriate
  • Docs updated under documentation/docs for user-facing changes
  • External contributors: I have signed the CLA (comment the sign phrase on this PR if CI asks)

Breaking changes / migration

None.

Restore node-in-button designer fix dropped by the master revert.
@cherepanov cherepanov added the bug Something isn't working label Nov 26, 2026
@cherepanov cherepanov self-assigned this Nov 26, 2026
@cherepanov
cherepanov requested a review from ashalugin November 26, 2026 12:44
@cherepanov
cherepanov marked this pull request as ready for review November 26, 2026 12:44
@cherepanov cherepanov added this to the 12.2.0 milestone Nov 26, 2026
Canvas add control is no longer a nested <button>; open it via data-testid and pointerdown like the component tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Mantine: node props render a button inside a button

1 participant