# Hour picker improved

**URL:** https://publichappinessmovement.com/t/topic/1589
**Category:** React Js and Meteor
**Tags:** done, reactjs
**Created:** [3 September 2019 16:03 UTC](https://publichappinessmovement.com/t/topic/1589 "2019-09-03T16:03:27Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![caike08](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/caike08/32/433_2.png) [@caike08](https://publichappinessmovement.com/u/caike08)
#### Post date: [10 February 2020 20:53 UTC](https://publichappinessmovement.com/t/topic/1589/17 "2020-02-10T20:53:07Z")

</div>

So, I’m trying to use the first plugin [here](https://react-component.github.io/time-picker/examples/12hours.html) to handle the time picker. However, when I select a time, the form automatically refreshes the page. I tried to use events like `stopPropagation()` and `preventDefault()` but they just don’t work as I expected.

When I went deeper into the code, I found out that it is more complex to understand than I presumed. I don’t know if it should be this complex, or if I am only unskilled. But I just cannot understand how it works. The code was written two years ago, and probably those who wrote them have more experience with React than I do.

As you and @Mateo have been discussing about a new UX flow for the form, I wonder if this shouldn’t be the time to implement it. Because I think it would take me too much time to understand what they did with this form. I am sorry for not being helpful this time.

---

_[View the full topic](https://publichappinessmovement.com/t/topic/1589)._
