Fix issue where preset list would not appear when adding new features (close #6271)

This commit is contained in:
Quincy Morgan
2019-04-30 09:42:24 -07:00
parent dbb10bb155
commit ddae6641b3

View File

@@ -54,8 +54,7 @@ export function uiInspector(context) {
(!hasNonGeometryTags && !entity.isHighwayIntersection(context.graph()));
var issues = context.validator().getEntityIssues(_entityID);
// start with the preset list if the feature is new and untagged or is an uninteresting vertex
var showPresetList = issues.length === 0 &&
((newFeature && !hasNonGeometryTags) || isTaglessOrIntersectionVertex);
var showPresetList = (newFeature && !hasNonGeometryTags) || (isTaglessOrIntersectionVertex && !issues.length);
if (showPresetList) {
wrap.style('right', '-100%');