question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Right now when you want to fire an action on change-> The event will be fired only when u change focus from input field itself.

<inpit type="text" data-action="change->controller#change_value" />

Should it work like that? I thought it should fire an action on every input value change.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
zenizhcommented, Jan 10, 2018

I thought it should fire an action on every input value change.

I think you can do it using the keypress event 👍

5reactions
xhafancommented, Jan 26, 2021

I think you can do it using the keypress event +1

keypress does not work for backspace in Firefox for me. I use keyup event.

Read more comments on GitHub >

github_iconTop Results From Across the Web

onchange Event - W3Schools
The onchange event occurs when the value of an element has been changed. For radiobuttons and checkboxes, the onchange event occurs when the...
Read more >
HTMLElement: change event - Web APIs | MDN
The change event is fired for <input> , <select> , and <textarea> elements when the user modifies the element's value.
Read more >
Onchange Event in JavaScript - Scaler Topics
The onchange is an event attribute. We can listen to the change event to perform the operation based on any change and the...
Read more >
.change() | jQuery API Documentation
The change event is sent to an element when its value changes. This event is limited to <input> elements, <textarea> boxes and <select>...
Read more >
How onchange Event work in JavaScript | Examples - eduCBA
The onchange event is one of the events in JavaScript which is used for making the change in the state and transforming the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found