UI doesn't allow to enter empty CI variables (again)

Summary

In Project > Settings > CI / CD > Variables, the Add Variable dialog doesn't allow to create a variable with an empty value:

image

It was fixed once already around 3 years ago: gitlab-foss!6044 (closed)

Steps to reproduce

  1. Click the Add Variable button below the variables list
  2. In the opened dialog, enter variable name but don't enter a value

Example project

If necessary, you can experiment with this one: https://gitlab.com/earshinov/repro-empty-ci-variable/-/settings/ci_cd

What is the current bug behavior?

The button is disabled, rejecting the empty value.

What is the expected correct behavior?

The button is enabled, allowing to create a variable with an empty value.

Version information

Reproducible:

  • in GitLab Enterprise Edition 13.0.6-ee
  • on GitLab.com
Edited by Evgeny Arshinov