We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0e86f6 + 8e819c3 commit df69603Copy full SHA for df69603
themes/bubble.js
@@ -48,7 +48,7 @@ class BubbleTooltip extends BaseTooltip {
48
setTimeout(() => {
49
if (this.root.classList.contains('ql-hidden')) return;
50
const range = this.quill.getSelection();
51
- if (range != null) {
+ if (range != null && range.length > 0) {
52
const rangePosition = this.calculateRangePosition(range);
53
this.position(rangePosition);
54
}
@@ -62,7 +62,7 @@ class BubbleTooltip extends BaseTooltip {
62
63
calculateRangePosition(range) {
64
const lines = this.quill.getLines(range.index, range.length);
65
- if (lines.length === 1) {
+ if (lines.length < 2) {
66
return this.quill.getBounds(range);
67
68
0 commit comments