# 3.1.0: Bug with TypedInput validation

**URL:** <https://discourse.nodered.org/t/3-1-0-bug-with-typedinput-validation/82721>\
**Category:** Developing Nodes\
**Tags:** editor, typedinput\
**Created:** [8 November 2023 18:21 UTC](https://discourse.nodered.org/t/3-1-0-bug-with-typedinput-validation/82721 "2023-11-08T18:21:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [8 November 2023 18:21 UTC](https://discourse.nodered.org/t/3-1-0-bug-with-typedinput-validation/82721/1 "2023-11-08T18:21:06Z")

</div>

Hi all,  
Something in version 3.1.0 breaks typedInput validation:

- 3.0.2 - `range` node  

- 3.1.0 - `range` node  

The strangest thing is that it works if you use the typedInput in a container but not directly in the editor (e.g. `inject` node)

Does anyone else have this issue too?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [8 November 2023 18:44 UTC](https://discourse.nodered.org/t/3-1-0-bug-with-typedinput-validation/82721/2 "2023-11-08T18:44:37Z")

</div>

Can confirm I see this to (the red outline is there, just the gif reduces the clarity)

@GogoVega  
A request for a bug report may be requested by the team

![Nov-08-2023 18-34-36](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/1/01f7759b80c7af46812f6100d9424ced6204b2df.gif)

**3.1.0** / Safari

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [8 November 2023 20:19 UTC](https://discourse.nodered.org/t/3-1-0-bug-with-typedinput-validation/82721/3 "2023-11-08T20:19:45Z")

</div>

Yup, please raise an issue with details.

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [8 November 2023 21:16 UTC](https://discourse.nodered.org/t/3-1-0-bug-with-typedinput-validation/82721/4 "2023-11-08T21:16:24Z")

</div>

Done 🙃

> <https://github.com/node-red/node-red/issues/4429>
>
> \### Current Behavior
> 
> When I use v3.1.0, the input of my field created with \`typ…edInput\` is no longer validated.
> 
> It's only happens when my input is defined in the editor, an input defined in a container works.
> 
> For example, the code below will construct an input with types \`str\` and \`msg\`. If I select \`msg\` and write \`payload.\`, the validation function should return an input error which is represented by a red field.
> Unfortunately v3.1.0 no longer displays this field in red.
> 
> \`\`\`js
> $("#node-input-path").typedInput({
> typeField: "#node-input-pathType",
> types: \["msg", "str"\],
> });
> \`\`\`
> 
> \[Discussed\](https://discourse.nodered.org/t/3-1-0-bug-with-typedinput-validation/82721) in the NR Forum.
> 
> \### Expected Behavior
> 
> The validation function should return an input error which is represented by a red field.
> 
> \### Steps To Reproduce
> 
> \- Input defined in a container
> 
> 1. Open the \`input\` node
> 2. Add \`.\` for the payload property field
> 3. The field turns red
> 
> \- Input defined in the editor
> 
> 1. Open the \`range\` node
> 2. Write \`payload.\` for the property field
> 3. The field does not turn red
> 
> \### Example flow
> 
> No Needed
> 
> 
> \### Environment
> 
> \- Node-RED version: v3.1.0
> \- Node.js version: v20.6.1
> \- npm version: v9.8.1
> \- Platform/OS: MacOS
> \- Browser: Safari

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 January 2024 21:17 UTC](https://discourse.nodered.org/t/3-1-0-bug-with-typedinput-validation/82721/5 "2024-01-07T21:17:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
