Skip to content

SearchBar does not handle capitalization correctly #5014

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

Closed
1 task done
perna-python opened this issue Mar 3, 2025 · 0 comments · Fixed by #5070
Closed
1 task done

SearchBar does not handle capitalization correctly #5014

perna-python opened this issue Mar 3, 2025 · 0 comments · Fixed by #5070
Assignees
Labels
bug Something isn't working controls
Milestone

Comments

@perna-python
Copy link

Duplicate Check

Describe the bug

Capitalization is not working properly in the SearchBar

Code sample

Code
import flet as ft

def main(page: ft.Page):
    anchor = ft.SearchBar(
        view_elevation=4,
        divider_color=ft.Colors.AMBER,
        on_change=lambda _: anchor.open_view(),
        on_submit=lambda _: anchor.open_view(),
        on_tap=lambda _: anchor.open_view(),
        capitalization=ft.TextCapitalization.CHARACTERS,
    )
    page.add(anchor)

ft.app(target=main)

To reproduce

write in search bar

Expected behavior

That capitalization is handled properly.

Screenshots / Videos

Captures

[Upload media here]

Operating System

macOS

Operating system details

Sequoia 15.3.1 (24D70)

Flet version

0.26.0

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

@ndonkoHenri ndonkoHenri self-assigned this Mar 11, 2025
@ndonkoHenri ndonkoHenri added bug Something isn't working controls labels Mar 11, 2025
@ndonkoHenri ndonkoHenri added this to the Flet v0.27.6 milestone Mar 11, 2025
@ndonkoHenri ndonkoHenri moved this from 🆕 New to 🏗 In progress in Flet Development Mar 11, 2025
@ndonkoHenri ndonkoHenri moved this from 🏗 In progress to 👀 In review in Flet Development Mar 11, 2025
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Flet Development Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working controls
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants