@gitlab/ui 64.18.2 → 64.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/components/base/new_dropdowns/listbox/listbox.js +2 -4
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/src/components/base/new_dropdowns/listbox/listbox.spec.js +1 -0
- package/src/components/base/new_dropdowns/listbox/listbox.vue +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [64.18.3](https://gitlab.com/gitlab-org/gitlab-ui/compare/v64.18.2...v64.18.3) (2023-07-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **listbox:** Fix reset button on single select ([8684a7c](https://gitlab.com/gitlab-org/gitlab-ui/commit/8684a7c778ed4517f67ca6191b0a3634f45ca70f))
|
|
7
|
+
|
|
1
8
|
## [64.18.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v64.18.1...v64.18.2) (2023-07-05)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -396,10 +396,8 @@ var script = {
|
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
*/
|
|
402
|
-
if (this.selected.length === 0) {
|
|
399
|
+
// hide if no selection
|
|
400
|
+
if (!this.selected || this.selected.length === 0) {
|
|
403
401
|
return false;
|
|
404
402
|
}
|
|
405
403
|
if (this.multiple) {
|
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -506,6 +506,7 @@ describe('GlCollapsibleListbox', () => {
|
|
|
506
506
|
description | props
|
|
507
507
|
${'multi-select'} | ${{ multiple: true, selected: [] }}
|
|
508
508
|
${'single-select'} | ${{ multiple: false, selected: [] }}
|
|
509
|
+
${'single-select'} | ${{ multiple: false, selected: undefined }}
|
|
509
510
|
`('hides the button if the selection is empty in $description mode', ({ props }) => {
|
|
510
511
|
buildWrapper({
|
|
511
512
|
headerText: 'Select assignee',
|