# inputbox typed value stays even after submit

**URL:** <https://forum.kirupa.com/t/inputbox-typed-value-stays-even-after-submit/638152>\
**Category:** programming\
**Created:** [April 29, 2018, 2:57am UTC](https://forum.kirupa.com/t/inputbox-typed-value-stays-even-after-submit/638152 "2018-04-29T02:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![siargao](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/siargao/32/9095_2.png) [@siargao](https://forum.kirupa.com/u/siargao)\
**Post date:** [April 29, 2018, 2:57am UTC](https://forum.kirupa.com/t/inputbox-typed-value-stays-even-after-submit/638152/1 "2018-04-29T02:57:06Z")

</div>

Hello Kirupa,

I have finished the Todolist tutorial by watching your video and reading your book Learn React.  
I came across a problem though. The text I typed in the inputbox stays after I press the submit button.  
I don’t know how to fix it. Can you direct me, please? Here is the link to github [https://github.com/siargao/todoList2](https://github.com/siargao/todoList2)  
Cheers

---

<div class="post-metadata">

**Author:** ![JohnHansenArtist](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnhansenartist/32/8958_2.png) [@JohnHansenArtist](https://forum.kirupa.com/u/JohnHansenArtist)\
**Post date:** [April 29, 2018, 10:35pm UTC](https://forum.kirupa.com/t/inputbox-typed-value-stays-even-after-submit/638152/2 "2018-04-29T22:35:10Z")

</div>

Without looking at your code, my guess would be that you may have not provided a setState value of an empty string to the inputBox on the submit function?

---

<div class="post-metadata">

**Author:** ![siargao](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/siargao/32/9095_2.png) [@siargao](https://forum.kirupa.com/u/siargao)\
**Post date:** [April 30, 2018, 12:29am UTC](https://forum.kirupa.com/t/inputbox-typed-value-stays-even-after-submit/638152/3 "2018-04-30T00:29:07Z")

</div>

Hello John, thanks for your time. Yes you are absolutely right. Thanks a lot again.
