Merge pull request #638 from bluetwelve/master

#637 control points and handles only display correctly the first time
This commit is contained in:
JFH
2021-09-02 19:22:18 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -861,7 +861,7 @@ export const pathActionsMethod = (function () {
const pathpointgripContainer = getElem('pathpointgrip_container');
const elements = pathpointgripContainer.querySelectorAll('*');
Array.prototype.forEach.call(elements, function(el){
el.style.display = 'none';
el.setAttribute('display', 'none');
});
firstCtrl = null;
editorContext_.setDrawnPath(null);

View File

@@ -640,7 +640,7 @@ export class Path {
const pointGripContainer = getGripContainerMethod();
const elements = pointGripContainer.querySelectorAll('*');
Array.prototype.forEach.call(elements, function(el){
el.style.display = 'none';
el.setAttribute('display', 'none');
});
const segList = this.elem.pathSegList;