@gitlab/ui 105.1.0 → 105.1.1
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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [105.1.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v105.1.0...v105.1.1) (2024-12-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlFilteredSearch:** allow passing null values to non multi select inputs ([01446a9](https://gitlab.com/gitlab-org/gitlab-ui/commit/01446a98d1afc579574e1bacad742788a0bf4837))
|
|
7
|
+
|
|
1
8
|
# [105.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v105.0.1...v105.1.0) (2024-12-06)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -214,6 +214,18 @@ var script = {
|
|
|
214
214
|
inputValue(newValue) {
|
|
215
215
|
if (this.termsAsTokens()) return;
|
|
216
216
|
if (this.multiSelect) return;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* This is a temporary workaround to implement the same behaviour
|
|
220
|
+
* implemented in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2381
|
|
221
|
+
* for tokens with `terms-as-tokens=false` and `multi-select=false`.
|
|
222
|
+
*
|
|
223
|
+
* We're aiming to remove this temporary fix when
|
|
224
|
+
* https://gitlab.com/groups/gitlab-org/-/epics/15948 gets completed, as
|
|
225
|
+
* that refactoring will use the `@input` handler on the GlFilteredSearch
|
|
226
|
+
* component to handle tokens instead of doing workarounds.
|
|
227
|
+
*/
|
|
228
|
+
if (typeof newValue !== 'string') return;
|
|
217
229
|
const hasUnclosedQuote = newValue.split('"').length % 2 === 0;
|
|
218
230
|
if (newValue.indexOf(' ') === -1 || hasUnclosedQuote) {
|
|
219
231
|
return;
|
package/package.json
CHANGED
|
@@ -232,6 +232,18 @@ export default {
|
|
|
232
232
|
|
|
233
233
|
if (this.multiSelect) return;
|
|
234
234
|
|
|
235
|
+
/**
|
|
236
|
+
* This is a temporary workaround to implement the same behaviour
|
|
237
|
+
* implemented in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2381
|
|
238
|
+
* for tokens with `terms-as-tokens=false` and `multi-select=false`.
|
|
239
|
+
*
|
|
240
|
+
* We're aiming to remove this temporary fix when
|
|
241
|
+
* https://gitlab.com/groups/gitlab-org/-/epics/15948 gets completed, as
|
|
242
|
+
* that refactoring will use the `@input` handler on the GlFilteredSearch
|
|
243
|
+
* component to handle tokens instead of doing workarounds.
|
|
244
|
+
*/
|
|
245
|
+
if (typeof newValue !== 'string') return;
|
|
246
|
+
|
|
235
247
|
const hasUnclosedQuote = newValue.split('"').length % 2 === 0;
|
|
236
248
|
if (newValue.indexOf(' ') === -1 || hasUnclosedQuote) {
|
|
237
249
|
return;
|