-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
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
fix(nativeSelectValue): update selected value on change #3154
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. That looks better. One last thing, could you add a test to https://github.com/dequelabs/axe-core/blob/develop/test/core/base/virtual-node/virtual-node.js? I know we don't have tests for the node specific props (multiple
, nodeValue
, value
, etc.), but I think that might be a failing on our part.
The test can be as simple "node with selected property is reflected in props"
or something, just so we don't delete it one day without knowing.
@@ -97,6 +107,32 @@ describe('VirtualNode', function() { | |||
}); | |||
}); | |||
|
|||
describe('props', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to add these tests? They look like copy/paste from the previous describe('attr')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! Deleted!
88d8ba0
to
2ce8af8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thanks for fixing this.
Reviewed for security |
nativeSelectValue
not picking up selection* Fix nativeSelectValue not picking up selection * Use props instead * Add test for selected prop
nativeSelectValue
doesn't return the selected value after manual selection. This PR fixes that by using theselected
on<option>
to get the up-to-date value.