Skip to content

Fix incorrect rendering of typedInput with a single type - #5934

Merged
knolleary merged 1 commit into
node-red:mainfrom
GogoVega:fix-5698-typedInput-render
Sep 8, 2026
Merged

knolleary merged 1 commit into
node-red:mainfrom
GogoVega:fix-5698-typedInput-render

Conversation

@GogoVega

@GogoVega GogoVega commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

Fixes #5698.

The FINS Write node has a rendering issue with one of the typedInput inputs. After analysis, the cause is the default value of the type given by the node definition.

This input has a list of types (["msg"]) but the initialized type is str due to this.typeField.val().

To avoid this behavior, I propose overwriting the incorrect type with the default type or the first type in the list. typedInput should initialize correctly even if the requested type is incorrect.

The linked issue opened by Allan is most likely related to this behavior.

CC @Steve-Mcl 😉

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run npm run test to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@knolleary
knolleary merged commit 1394534 into node-red:main Sep 8, 2026
3 of 5 checks passed
@GogoVega
GogoVega deleted the fix-5698-typedInput-render branch September 8, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typed Input widget render issue when using "node"

2 participants