[PR #19672] [CLOSED] fix: add on:click and on:mouseleave to Generate Title button #112615

Closed
opened 2026-05-18 12:47:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/19672
Author: @bshi61646
Created: 12/2/2025
Status: Closed

Base: mainHead: fix/generate-title-button


📝 Commits (1)

  • 97fee46 fix: add on:click and on:mouseleave to Generate Title button

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 src/lib/components/layout/Sidebar/ChatItem.svelte (+6 -0)

📄 Description

Summary

Add on:click and on:mouseleave handlers to the "Generate Title" button to fix silent failure in Safari.

Problem

The button relied solely on the blur event's relatedTarget to trigger title generation, which behaves differently in Safari and causes the button to fail silently.

Solution

  • Add on:click handler to explicitly call generateTitleHandler()
  • Add on:mouseleave handler to reset ignoreBlur flag

Fixes #19616


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/19672 **Author:** [@bshi61646](https://github.com/bshi61646) **Created:** 12/2/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/generate-title-button` --- ### 📝 Commits (1) - [`97fee46`](https://github.com/open-webui/open-webui/commit/97fee46ea6d9457a160a0abdf3069e0d32c57e59) fix: add on:click and on:mouseleave to Generate Title button ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/layout/Sidebar/ChatItem.svelte` (+6 -0) </details> ### 📄 Description ## Summary Add `on:click` and `on:mouseleave` handlers to the "Generate Title" button to fix silent failure in Safari. ## Problem The button relied solely on the blur event's `relatedTarget` to trigger title generation, which behaves differently in Safari and causes the button to fail silently. ## Solution - Add `on:click` handler to explicitly call `generateTitleHandler()` - Add `on:mouseleave` handler to reset `ignoreBlur` flag Fixes #19616 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-18 12:47:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#112615