-
Notifications
You must be signed in to change notification settings - Fork 55
fix(Chat): fix handling of onMouseEnter
#1903
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1903 +/- ##
==========================================
+ Coverage 69.87% 69.89% +0.02%
==========================================
Files 890 890
Lines 7783 7785 +2
Branches 2275 2275
==========================================
+ Hits 5438 5441 +3
+ Misses 2335 2334 -1
Partials 10 10
Continue to review full report at Codecov.
|
But how could you previously pass |
@@ -20,4 +23,14 @@ describe('ChatMessage', () => { | |||
focusZoneDefinition: (chatMessageBehavior as AccessibilityDefinition).focusZone, | |||
}) | |||
}) | |||
|
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.
How about another test, that will check that a custom onMouseEnter
function gets called?
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.
It's already tested by isConformant
test, see handles events transparently
.
Co-Authored-By: Pavel Lu膷iv艌谩k <pavel.lucivnak@gmail.com>
* fix(Chat): fix handling of `onMouseEnter` * add changelog entry * Update packages/react/src/components/Chat/ChatMessage.tsx Co-Authored-By: Pavel Lu膷iv艌谩k <pavel.lucivnak@gmail.com> (cherry picked from commit 2eeb285)
馃挜 Issue
Previously
onMouseEnter
was not handled properly, if you will pass customonMouseEnter
the position update will be never called.