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
🔄 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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/19672
Author: @bshi61646
Created: 12/2/2025
Status: ❌ Closed
Base:
main← Head:fix/generate-title-button📝 Commits (1)
97fee46fix: 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:clickandon:mouseleavehandlers to the "Generate Title" button to fix silent failure in Safari.Problem
The button relied solely on the blur event's
relatedTargetto trigger title generation, which behaves differently in Safari and causes the button to fail silently.Solution
on:clickhandler to explicitly callgenerateTitleHandler()on:mouseleavehandler to resetignoreBlurflagFixes #19616
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.