Skip to content

Commit

Permalink
Merge branch 'main' into update-react19
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdemartini authored Dec 22, 2024
2 parents 53705fe + edcdbb9 commit 4b92096
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
8 changes: 4 additions & 4 deletions example/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mui-tiptap",
"version": "1.15.0",
"version": "1.15.1",
"description": "A Material-UI (MUI) styled WYSIWYG rich text editor, using Tiptap",
"keywords": [
"mui",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/controls/MenuSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ export default function MenuSelect<T>({
setTooltipOpen(false);
selectProps.onClick?.(...args);
}}
onOpen={(...args) => {
// Close the tooltip when the dropdown is opened. This can ensure the
// tooltip doesn't block menu items, etc. (see
// https://github.com/sjdemartini/mui-tiptap/issues/308).
setTooltipOpen(false);
selectProps.onOpen?.(...args);
}}
inputProps={{
...selectProps.inputProps,
className: cx(classes.input, selectProps.inputProps?.className),
Expand Down

0 comments on commit 4b92096

Please sign in to comment.