Closed mzazrivec closed 4 years ago
Ah, using ng-options
consistently now, so the empty value is no longer ""
but null
, makes sense.
Jansa backport details:
$ git log -1
commit 1185798d9c48eb71fb2f2352da7e913515f57d51
Author: Martin Hradil <mhradil@redhat.com>
Date: Mon Aug 3 15:51:36 2020 +0000
Merge pull request #447 from mzazrivec/correctly_set_null_default_value_for_tag_control_and_dropdown
Correctly set 'null' default value for TagControl & Dropdown
(cherry picked from commit 718469070abb168923af861211f7950cfc736317)
Ivanchuk backport details:
$ git log -1
commit 0b7e11f518e0766a4fc2cd2ab3d90426fd65a1d5
Author: Martin Hradil <mhradil@redhat.com>
Date: Mon Aug 3 15:51:36 2020 +0000
Merge pull request #447 from mzazrivec/correctly_set_null_default_value_for_tag_control_and_dropdown
Correctly set 'null' default value for TagControl & Dropdown
(cherry picked from commit 718469070abb168923af861211f7950cfc736317)
https://bugzilla.redhat.com/show_bug.cgi?id=1861252
This is what
data.values
for single-valueDialogFieldDropDownList
looks like:This is what
data.values
for single-valueDialogFieldTagControl
looks like:Setting the
null
default value for these cases will make theNothing Selected
thing go away.Before:
After:
https://bugzilla.redhat.com/show_bug.cgi?id=1861252