-
-
Notifications
You must be signed in to change notification settings - Fork 114
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: picklist when readonly and click the label it opens the menu #2041
fix: picklist when readonly and click the label it opens the menu #2041
Conversation
Bug Fixes
Tests
ContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
this.setState({ | ||
isOpen: true, | ||
}); | ||
} |
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.
we should add test to this
@@ -132,4 +132,18 @@ describe('<Picklist />', () => { | |||
expect(component.find('[aria-expanded=true]').exists()).toBe(false); | |||
expect(component.find(InternalOverlay).prop('isVisible')).toBe(false); | |||
}); | |||
it('should not open menu when is readOnly and click the picklist label', () => { | |||
const component = mount( |
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.
Similar blocks of code found in 3 locations. Consider refactoring.
Code Climate has analyzed commit 8d14a83 and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
…xxtway#2041) * fix: picklist when readOnly and click the label it opens the menu * test: add unit test Co-authored-by: Tahimi <tahimileon@gmail.com>
fix: #2036
Changes proposed in this PR:
fix: picklist when readOnly and click the label it opens the menu
I have followed (at least) the PR section of the contributing guide.
@nexxtway/react-rainbow