# Ui\_text\_input quirk?

**URL:** https://discourse.nodered.org/t/ui-text-input-quirk/12480
**Category:** Dashboard
**Created:** [22 June 2019 09:32 UTC](https://discourse.nodered.org/t/ui-text-input-quirk/12480 "2019-06-22T09:32:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [22 June 2019 09:32 UTC](https://discourse.nodered.org/t/ui-text-input-quirk/12480/1 "2019-06-22T09:32:08Z")

</div>

Node-RED version: v0.20.3  
Node.js version: v8.11.4  
Linux 4.14.98+ arm LE  
Dashboard version 2.15.4

Just noticed when the ui\_text\_input Delay is set to 0, msg.payload is immediately sent on a change, contrary to what the nodes info states -

_"The **Delay** (default : 300ms) sets the amount of time in milliseconds before the output is sent. Setting to `0` waits for "Enter" or "Tab" key to send."_

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [22 June 2019 11:23 UTC](https://discourse.nodered.org/t/ui-text-input-quirk/12480/2 "2019-06-22T11:23:07Z")

</div>

My experience is that it **will** wait till you press enter and then a msg is sent from the node.

But if you then tab out of the field, two instances of the msg are send. Here is a flow (ui\_text\_input =\> debug) with the issue:

```auto
[{"id":"a742f7f6.d6fa68","type":"ui_text_input","z":"400c8386.3b0104","name":"","label":"delay 0","tooltip":"","group":"dcf2fce6.0eb518","order":4,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"","x":440,"y":100,"wires":[["37645fdd.8d364"]]},{"id":"37645fdd.8d364","type":"debug","z":"400c8386.3b0104","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":630,"y":100,"wires":[]},{"id":"dcf2fce6.0eb518","type":"ui_group","z":"","name":"Default","tab":"df3f2d27.786758","disp":true,"width":"6","collapse":false},{"id":"df3f2d27.786758","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":3,"disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [22 June 2019 14:54 UTC](https://discourse.nodered.org/t/ui-text-input-quirk/12480/3 "2019-06-22T14:54:28Z")

</div>

Confirmed and fixed in master.
