Skip to content

Commit 19367e5

Browse files
authored
Fix overflow balloon not working (#1949)
1 parent 64a1438 commit 19367e5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/public/components/common/popover/overflowBalloon.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ export const overflowBalloon = (content, options = null) => {
6868
},
6969

7070
/**
71-
* Lifecycle method called when the component is created
72-
* @returns {void}
71+
* States whether popover is visible
72+
*
73+
* @returns {boolean} true if visible, false otherwise
7374
*/
7475
showCondition: function () {
75-
doesElementOverflow(this.triggerNode.querySelector('.w-wrapped'));
76+
return doesElementOverflow(this.triggerNode.querySelector('.w-wrapped'));
7677
},
7778
},
7879
);

0 commit comments

Comments
 (0)