dify - ✅(Solved) Fix add conversation variable can't select the type [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#35589Fetched 2026-04-28 06:50:43
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
1
Author
Timeline (top)
closed ×1commented ×1cross-referenced ×1labeled ×1

Fix Action

Fixed

PR fix notes

PR #35590: fix(web): migrate variable type selector overlay

Description (problem / solution / changelog)

[!IMPORTANT]

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> <!-- If this PR was created by an automated agent, add `From <Tool Name>` as the final line of the description. Example: `From Codex`. -->

fix https://github.com/langgenius/dify/issues/35589

The chat variable type selector still used the deprecated PortalToFollowElem overlay with a low local z-index, which could be covered by newer overlay layers and make the dropdown appear unclickable.

This change migrates it to the shared @langgenius/dify-ui/select primitive so it uses the standardized portal and overlay layering, while preserving the existing UI behavior and test coverage.

Screenshots

BeforeAfter
......

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

Changed files

  • eslint-suppressions.json (modified, +0/-8)
  • web/app/components/workflow/panel/chat-variable-panel/components/__tests__/variable-type-select.spec.tsx (modified, +2/-1)
  • web/app/components/workflow/panel/chat-variable-panel/components/variable-type-select.tsx (modified, +40/-36)
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

latest main

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

<img width="1070" height="1014" alt="Image" src="https://github.com/user-attachments/assets/521ab766-b4c9-45f0-b29a-bb7632dab772" />

when click type there is no any effect

only the main branch has this issue

✔️ Expected Behavior

should allow user choose the type

❌ Actual Behavior

No response

extent analysis

TL;DR

The issue might be related to a recent change in the main branch, and checking the differences between the main branch and other branches could help identify the cause.

Guidance

  • Review the commit history of the main branch to identify any recent changes that could be causing the issue.
  • Compare the code in the main branch with other branches to see if there are any differences that could be contributing to the problem.
  • Try to reproduce the issue in a minimal environment to isolate the cause.
  • Check if there are any JavaScript errors or warnings in the browser console when clicking on the type.

Example

No code snippet can be provided without more information about the codebase.

Notes

The issue seems to be specific to the main branch, so it's likely that a recent change introduced the bug. Without more information about the code, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Try to identify the problematic commit in the main branch and revert it to see if the issue is resolved, as the problem only occurs in the main branch.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

dify - ✅(Solved) Fix add conversation variable can't select the type [1 pull requests, 1 comments, 2 participants]