Skip to content

Commit 43b399d

Browse files
committed
Fix - properly add interactive resize elements
One have to use selectChild, otherwise random sub-sub childs elements can be selected
1 parent 67681c8 commit 43b399d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gpad/TFramePainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function addDragHandler(_painter, arg) {
4747
function makeResizeElements(group, handler) {
4848
function addElement(cursor, d) {
4949
let clname = 'js_' + cursor.replace(/[-]/g, '_'),
50-
elem = group.select('.' + clname);
50+
elem = group.selectChild('.' + clname);
5151
if (elem.empty()) elem = group.append('path').classed(clname, true);
5252
elem.style('opacity', 0).style('cursor', cursor).attr('d', d);
5353
if (handler) elem.call(handler);

0 commit comments

Comments
 (0)