diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
index fd273ddfa8..0c88f06f04 100644
--- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -1366,7 +1366,22 @@ public function storeGroupInput($input, $status) {
 
       $session = &$_SESSION['views'][$this->view->storage->id()][$display_id];
 
-      $session[$this->options['group_info']['identifier']] = $input[$this->options['group_info']['identifier']];
+      // Get our submitted value for the group item.
+      $value = NULL;
+      foreach ($this->options['group_info']['group_items'] as $group_id => $group) {
+        if ($group['value'] == $input[$this->options['group_info']['identifier']]) {
+          $value = $group_id;
+          break;
+        }
+      }
+
+      // Only store if we have a value.
+      if (isset($value)) {
+        $session[$this->options['group_info']['identifier']] = $value;
+      }
+      else {
+        unset($session[$this->options['group_info']['identifier']]);
+      }
     }
   }
 
