Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder should not operate on the actual text buffer #171

Open
databasedav opened this issue Mar 2, 2025 · 0 comments
Open

Placeholder should not operate on the actual text buffer #171

databasedav opened this issue Mar 2, 2025 · 0 comments

Comments

@databasedav
Copy link
Contributor

change detection on text triggers when the placeholder is set, which doesn't make sense, since the text that we care about is actually empty

instead, the placeholder should just insert a vanilla bevy text node when the buffer is empty, or CosmicTextChanged should have an attribute for placeholder text, although the former is highly preferred albeit more difficult to implement due to needing to synchronize the cosmic text and bevy styling

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

No branches or pull requests

1 participant