input not firing the update #1718

Closed
joelchu opened this Issue Mar 31, 2016 · 1 comment

Projects

None yet

2 participants

@joelchu
joelchu commented Mar 31, 2016
  1. Describe your issue:

I am trying to create a live text input and display:

  <input name="name" />
  <span class="help-text">You just type: {name.value}</span> 

From what I understand, it should display the name.value as I type right (Because Riot.js will fire the update upon user input)? But that's not the case. But when I attach an event handler to the input field

<input name="name" oninput={show} />
...
<script>
    // just an empty method 
    this.show = () => {}
</script>

The code work as expected. Is this a feature or a bug?

  1. Can you reproduce the issue?

From my code

  1. On which browser/OS does the issue appear?

Only tried in Chrome

  1. Which version of Riot does it affect?

V2.3.17

  1. How would you tag this issue?
    • [X ] Question
    • [X ] Bug
    • Discussion
    • Feature request
    • Tip
    • Enhancement
    • Performance
@joelchu joelchu changed the title from oninput not firing the update to input not firing the update Mar 31, 2016
@GianlucaGuarini
Member

duplicate of #526 (comment)

@GianlucaGuarini GianlucaGuarini referenced this issue May 9, 2016
Closed

Riot 3.0.0 roadmap #1694

14 of 16 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment