1 ? { cursor: 'move' } : {}}
>
-
+ {viaPoints.length > 1 && (
+
+ )}
4,
})}
- enabled={showViapointControl}
+ enabled={showViapointControl && viaPoints.length === 0}
onClick={() => this.handleAddViaPointClick()}
onKeyPress={e =>
isKeyboardSelectionEvent(e) && this.handleAddViaPointClick()
diff --git a/digitransit-component/packages/digitransit-component/package.json b/digitransit-component/packages/digitransit-component/package.json
index fcd0eea585..2d37bc240e 100644
--- a/digitransit-component/packages/digitransit-component/package.json
+++ b/digitransit-component/packages/digitransit-component/package.json
@@ -15,7 +15,7 @@
},
"dependencies": {
"@digitransit-component/digitransit-component-autosuggest": "^3.0.1",
- "@digitransit-component/digitransit-component-autosuggest-panel": "^4.0.1",
+ "@digitransit-component/digitransit-component-autosuggest-panel": "^4.0.2",
"@digitransit-component/digitransit-component-control-panel": "^2.0.0",
"@digitransit-component/digitransit-component-favourite-bar": "2.0.5",
"@digitransit-component/digitransit-component-favourite-editing-modal": "^2.0.2",
diff --git a/yarn.lock b/yarn.lock
index d8c2d7e8d6..e374c5bebb 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1968,7 +1968,7 @@ __metadata:
languageName: unknown
linkType: soft
-"@digitransit-component/digitransit-component-autosuggest-panel@^4.0.1, @digitransit-component/digitransit-component-autosuggest-panel@workspace:digitransit-component/packages/digitransit-component-autosuggest-panel":
+"@digitransit-component/digitransit-component-autosuggest-panel@^4.0.2, @digitransit-component/digitransit-component-autosuggest-panel@workspace:digitransit-component/packages/digitransit-component-autosuggest-panel":
version: 0.0.0-use.local
resolution: "@digitransit-component/digitransit-component-autosuggest-panel@workspace:digitransit-component/packages/digitransit-component-autosuggest-panel"
peerDependencies:
@@ -2167,7 +2167,7 @@ __metadata:
resolution: "@digitransit-component/digitransit-component@workspace:digitransit-component/packages/digitransit-component"
dependencies:
"@digitransit-component/digitransit-component-autosuggest": ^3.0.1
- "@digitransit-component/digitransit-component-autosuggest-panel": ^4.0.1
+ "@digitransit-component/digitransit-component-autosuggest-panel": ^4.0.2
"@digitransit-component/digitransit-component-control-panel": ^2.0.0
"@digitransit-component/digitransit-component-favourite-bar": 2.0.5
"@digitransit-component/digitransit-component-favourite-editing-modal": ^2.0.2