We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a user change/select the value (option) of a dropdown input :
<label for="test">Trigger events</label> <select name="test" id="test"> <option>A</option> <option>B</option> </select> <script> const selectInput = document.getElementById('test'); selectInput.addEventListener('change', () => console.log('CHANGE EVENT TRIGGERED)); selectInput.addEventListener('input', () => console.log('input EVENT TRIGGERED)); </script>
in test:
select 'B', from:"Trigger events"
it does not trigger the input event , but correctly triggers the change event https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
input
change
Looking at the code i think we are missing a line that also triggers a input event in addition to that change event
cuprite/lib/capybara/cuprite/javascripts/index.js
Lines 363 to 380 in c7dc979
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Context
When a user change/select the value (option) of a dropdown input :
in test:
it does not trigger the
input
event , but correctly triggers thechange
eventhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
Looking at the code i think we are missing a line that also triggers a
input
event in addition to thatchange
eventcuprite/lib/capybara/cuprite/javascripts/index.js
Lines 363 to 380 in c7dc979
The text was updated successfully, but these errors were encountered: