sketch.visibleElements={selectionTools:{ "lasso-selection": false }}, is not removing the lasso tool from the menu in 4.28.
Solved! Go to Solution.
Hi @MatthewDriscoll - a fix for this is available on npm @arcgis/core version 4.28.6 and should be available on the CDN this evening. Thanks for letting us know!
Seems to be working as expected for me - https://codepen.io/annefitz/pen/YzBwWPx?editors=1000
Could you provide a repro case of the issue you're seeing?
It does seem to work if you use it that way. Must be a bug in 4.28. If you take it out and do this it does not.
sketch.visibleElements = ({
createTools:{
circle: false,
rectangle: false,
},
selectionTools :{
"lasso-selection": false
},
creationMode: "update",
undoRedoMenu: false,
settingsMenu: false
});
Did you have the same results taking it outside the property object of the sketch widget in 4.28?
Yes, seems like a bug. We are looking into it!
Hi @MatthewDriscoll - a fix for this is available on npm @arcgis/core version 4.28.6 and should be available on the CDN this evening. Thanks for letting us know!