Skip to content

V1: ListTile(toggle_inputs=True) only toggles the trailing Checkbox on every other tap/click #5627

@InesaFitsner

Description

@InesaFitsner

Duplicate Check

Describe the bug

When toggle_inputs=True is set on a ListTile that has a trailing Checkbox, tapping/clicking the tile toggles the checkbox only on alternate clicks. The first click works, the second does nothing, the third works again, etc. It should toggle on every click.

Code sample

Code
import flet as ft


def main(page):
    page.title = "ListTile Examples"
    page.add(
        ft.ListTile(
            "ListTileStyle with toggle inputs",
            subtitle="List",
            leading=ft.Icon(ft.Icons.STAR),
            trailing=ft.Checkbox(),
            bgcolor=ft.Colors.LIGHT_BLUE_ACCENT_100,
            style=ft.ListTileStyle.LIST,
            toggle_inputs=True,
        ),
    )


ft.run(main)

To reproduce

Run the snippet below.

Click (or tap) anywhere on the ListTile repeatedly.

Observe that the Checkbox changes state only on every other click.

Expected behavior

Each click on the ListTile should toggle the trailing Checkbox state (checked ↔ unchecked) every time, not only on alternate clicks.

Screenshots / Videos

Captures

[Upload media here]

Operating System

macOS

Operating system details

macOS

Flet version

0.69.0

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions