Skip to content

Conversation

@c01dwave
Copy link

@c01dwave c01dwave commented Dec 4, 2025

Description

Fix the issue where the placeholder text covers the cursor in light mode.

Closes #7267

Root Cause

The input component uses a custom absolutely positioned <span> element to display placeholder text (native placeholder is set to transparent). This custom placeholder element lacks a z-index, causing it to render above the cursor in certain scenarios.

Solution

Add position: relative and z-index: 1 to input-el and textarea-el to ensure the input element (including the cursor) always renders above the placeholder.

@c01dwave c01dwave changed the title fix(input): placeholder covering cursor in light mode, closes #7367 fix(input): placeholder covering cursor in light mode, closes #7267 Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

浅色模式下input组件的提示文本会把光标挡住

1 participant