Skip to content

Commit a07716d

Browse files
committed
relayout: annotation and shape update with null
... now remove the item for the container.
1 parent ef87937 commit a07716d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot_api/plot_api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ function _relayout(gd, aobj) {
19271927
if(aobj[ai] === 'add' || Lib.isPlainObject(aobj[ai])) {
19281928
undoit[ai] = 'remove';
19291929
}
1930-
else if(aobj[ai] === 'remove') {
1930+
else if(aobj[ai] === 'remove' || vi === null) {
19311931
if(objNum === -1) {
19321932
undoit[objType] = objList;
19331933
delete undoit[ai];

0 commit comments

Comments
 (0)