Skip to content

Commit

Permalink
fix(equation): cannot hide textarea form after a new equation is inse…
Browse files Browse the repository at this point in the history
…rted
  • Loading branch information
luolonghao committed Jul 21, 2024
1 parent e5b7ef1 commit 4a3e65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/equation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default (editor: Editor) => {
const box = editor.selection.insertBox('equation', value);
editor.history.save();
const boxContainer = box.getContainer();
boxContainer.find('.lake-equation-form').show('flex');
boxContainer.addClass('lake-box-activated');
boxContainer.find('textarea').focus();
},
});
Expand Down

0 comments on commit 4a3e65d

Please sign in to comment.