# when does ValueChanged on TextInput fire?

**URL:** <https://forums.fusetools.com/t/when-does-valuechanged-on-textinput-fire/3717>\
**Category:** How-to Discussions\
**Created:** [July 20, 2016, 2:47pm UTC](https://forums.fusetools.com/t/when-does-valuechanged-on-textinput-fire/3717 "2016-07-20T14:47:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [July 20, 2016, 2:47pm UTC](https://forums.fusetools.com/t/when-does-valuechanged-on-textinput-fire/3717/1 "2016-07-20T14:47:54Z")

</div>

Hey, just for reference: Fuse 0.22.0.6993 pre-release on OSX.

I was playing around with a `<TextInput ValueChanged="{someFunction}" />`.

While I’m on a page where I have my `TextInput`, entering some value in it triggers the callback function on every keypress, which is perfectly fine.

But, when I `router.goBack()` from that page where I had the `TextInput` until the router releases it (2 pages away, to be exact), the `someFunction` callback gets fired one last time, with empty string in its args.value property.

I was wondering if this was an expected behavior?

---

<div class="post-metadata">

**Author:** ![Kristian\_Hasselknipp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kristian_hasselknipp/32/549_2.png) [@Kristian\_Hasselknipp](https://forums.fusetools.com/u/Kristian_Hasselknipp)\
**Post date:** [July 26, 2016, 10:17am UTC](https://forums.fusetools.com/t/when-does-valuechanged-on-textinput-fire/3717/2 "2016-07-26T10:17:52Z")

</div>

Hi!

This is the expected behavior and happens because the value is reset when the control is unrooted.
