@gitlab/ui 80.19.0 → 80.20.0

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,17 @@
1
+ # [80.20.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.19.1...v80.20.0) (2024-06-10)
2
+
3
+
4
+ ### Features
5
+
6
+ * allow controlling GlFormTextArea rows ([074004d](https://gitlab.com/gitlab-org/gitlab-ui/commit/074004de5e98a6d12e7b3f1422afa2b1b3cf77af))
7
+
8
+ ## [80.19.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.19.0...v80.19.1) (2024-06-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **duochat:** Don't submit on enter if composing in IME ([ef57dec](https://gitlab.com/gitlab-org/gitlab-ui/commit/ef57dece9dac129dc2cd77d23d2be5ac7e5d072e)), closes [/gitlab.com/gitlab-org/gitlab-ui/-/issues/2537#note_1938464119](https://gitlab.com//gitlab.com/gitlab-org/gitlab-ui/-/issues/2537/issues/note_1938464119)
14
+
1
15
  # [80.19.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.18.0...v80.19.0) (2024-06-05)
2
16
 
3
17
 
@@ -39,6 +39,11 @@ var script = {
39
39
  type: Number,
40
40
  required: false,
41
41
  default: null
42
+ },
43
+ rows: {
44
+ type: Number,
45
+ required: false,
46
+ default: 4
42
47
  }
43
48
  },
44
49
  data() {
@@ -94,7 +99,8 @@ var script = {
94
99
  ...this.$attrs,
95
100
  class: 'gl-form-input gl-form-textarea',
96
101
  noResize: this.noResize,
97
- value: this.value
102
+ value: this.value,
103
+ rows: this.rows
98
104
  };
99
105
  }
100
106
  },
@@ -302,7 +302,8 @@ var script = {
302
302
  metaKey,
303
303
  ctrlKey,
304
304
  altKey,
305
- shiftKey
305
+ shiftKey,
306
+ isComposing
306
307
  } = e;
307
308
  if (this.shouldShowSlashCommands) {
308
309
  e.preventDefault();
@@ -315,7 +316,7 @@ var script = {
315
316
  } else {
316
317
  this.activeCommandIndex = 0;
317
318
  }
318
- } else if (e.key === 'Enter' && !(metaKey || ctrlKey || altKey || shiftKey)) {
319
+ } else if (e.key === 'Enter' && !isComposing && !(metaKey || ctrlKey || altKey || shiftKey)) {
319
320
  e.preventDefault();
320
321
  this.sendChatPrompt();
321
322
  }