@gitlab/duo-ui 8.7.9 → 8.7.10

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
+ ## [8.7.10](https://gitlab.com/gitlab-org/duo-ui/compare/v8.7.9...v8.7.10) (2025-03-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set focus to input field when creating a new chat ([2fa2b6a](https://gitlab.com/gitlab-org/duo-ui/commit/2fa2b6a97525f65060f05d28bc5fd381b0c793c5))
7
+
1
8
  ## [8.7.9](https://gitlab.com/gitlab-org/duo-ui/compare/v8.7.8...v8.7.9) (2025-03-27)
2
9
 
3
10
 
@@ -376,6 +376,9 @@ var script = {
376
376
  },
377
377
  onNewChat() {
378
378
  this.$emit('new-chat');
379
+ this.$nextTick(() => {
380
+ this.focusChatInput();
381
+ });
379
382
  },
380
383
  updateSize(e) {
381
384
  this.$emit('chat-resize', e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/duo-ui",
3
- "version": "8.7.9",
3
+ "version": "8.7.10",
4
4
  "description": "Duo UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -445,6 +445,10 @@ export default {
445
445
  },
446
446
  onNewChat() {
447
447
  this.$emit('new-chat');
448
+
449
+ this.$nextTick(() => {
450
+ this.focusChatInput();
451
+ });
448
452
  },
449
453
  updateSize(e) {
450
454
  this.$emit('chat-resize', e);