From c73034fe7dd22ab02649a4a3a56b3ef84528944c Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 20 Feb 2020 00:36:33 +0100 Subject: [PATCH] Handle Select interactions with falsey select style --- src/ol/interaction/Select.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/interaction/Select.js b/src/ol/interaction/Select.js index 52bb569164..11a3c74bd0 100644 --- a/src/ol/interaction/Select.js +++ b/src/ol/interaction/Select.js @@ -61,7 +61,7 @@ const SelectEventType = { * @property {import("../style/Style.js").StyleLike} [style] * Style for the selected features. By default the default edit style is used * (see {@link module:ol/style}). - * If set to `false` the selected feature's style will not change. + * If set to a falsey value, the selected feature's style will not change. * @property {import("../events/condition.js").Condition} [removeCondition] A function * that takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a * boolean to indicate whether that event should be handled. @@ -373,7 +373,7 @@ class Select extends Interaction { restorePreviousStyle_(feature) { const key = getUid(feature); const selectInteractions = /** @type {Array