Skip to content

feat(editor): Support pasting an expression into a number parameter #15722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented May 27, 2025

Summary

When pasting a string with expression syntax into a number input (example: {{ $json.test }}, switch to expression mode

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-2602/number-fields-arent-automatically-turned-to-expressions

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@dana-gill dana-gill requested a review from RomanDavydchuk May 27, 2025 07:59
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

cubic found 2 issues across 2 files. Review them in cubic.dev

React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai to give specific feedback.

@@ -780,6 +780,15 @@ function onPaste(event: ClipboardEvent) {
}
}

function onPasteNumber(event: ClipboardEvent) {
Copy link

Choose a reason for hiding this comment

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

Missing event.preventDefault() after handling the paste event

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label May 27, 2025
Copy link

codecov bot commented May 27, 2025

Codecov Report

Attention: Patch coverage is 22.22222% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ontend/editor-ui/src/components/ParameterInput.vue 22.22% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@shortstacked
Copy link
Contributor

Workflow Test Results 📊 🔴 2 Failed, ⚠️ 4 Warnings, 👍 77 Successful out of 83 total workflows.

Detail: Workflows failing: 258: Workflow contains 2 deleted data. View full workflow run

Tested Ref: 3ba74a173f45aee8cd52e4420930b7b4da155f1c by @RomanDavydchuk

❌ Failed Tests (2)

Workflow ID Workflow Name Reason
258 Agent:auto-fix:openai Workflow contains 2 deleted data.
84 Matrix:Room:create invite kick leave:RoomMember:ge... Too Many Requests on node Matrix2

⚠️ Warnings (4)

Workflow ID Workflow Name Reason
237 BasicLLMChain:AzureChat Workflow contains new data that previously did not exist.
35 Slack:User:getPresence info:UserProfile:get update... Workflow contains new data that previously did not exist.
53 ConvertKit:CustomField:create getAll update delete... Workflow contains new data that previously did not exist.
257 Agent:auto-fix:anthropic Workflow contains new data that previously did not exist.

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants