Skip to content

Commit 6d518a7

Browse files
committed
Bump to 11.0.5
1 parent cc7a905 commit 6d518a7

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

docs/bundle-prod.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-mde",
3-
"version": "11.0.4",
3+
"version": "11.0.5",
44
"description": "React Markdown Editor",
55
"main": "./lib/js/index.js",
66
"types": "./lib/definitions/index.d.ts",

src/components/SuggestionsDropdown.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,16 @@ export const SuggestionsDropdown: React.FunctionComponent<SuggestionsDropdownPro
2424
focusIndex,
2525
textAreaRef
2626
}) => {
27-
const handleSuggestionClick =
28-
(event: React.MouseEvent) => {
29-
event.preventDefault();
30-
const index = parseInt(
31-
event.currentTarget.attributes["data-index"].value
32-
);
33-
onSuggestionSelected(index);
34-
};
27+
const handleSuggestionClick = (event: React.MouseEvent) => {
28+
event.preventDefault();
29+
const index = parseInt(event.currentTarget.attributes["data-index"].value);
30+
onSuggestionSelected(index);
31+
};
3532

3633
// onMouseDown should be cancelled because onClick will handle it propertly. This way, the textarea does not lose
3734
// focus
38-
const handleMouseDown =
39-
(event: React.MouseEvent) => event.preventDefault();
40-
35+
const handleMouseDown = (event: React.MouseEvent) => event.preventDefault();
36+
4137
return (
4238
<ul
4339
className={classNames("mde-suggestions", classes)}

0 commit comments

Comments
 (0)