Skip to content

Search field not accepting input when accessibility/semantics are enabled #39

@WillCallahan

Description

@WillCallahan

Description

Users cannot type into the country selector search field when screen readers or other accessibility tools are active. The search functionality becomes completely unusable for users relying on assistive technologies.

Root Cause

The search box widget was wrapped with conflicting Semantics and ExcludeSemantics widgets that prevented the underlying TextField from properly exposing its accessibility semantics and handling text input.

Impact

  • Breaks accessibility compliance
  • Makes the country selector unusable for screen reader users
  • Affects users with disabilities who rely on assistive technologies

Technical Details

The _SearchBox widget had a Semantics wrapper with textField: true containing an ExcludeSemantics child that wrapped the actual TextField. This conflicting semantic structure prevented proper text input handling when accessibility services were active.

Solution Implemented

Removed the conflicting Semantics and ExcludeSemantics wrappers, allowing the TextField to handle its own accessibility semantics natively. This restores proper text input functionality while maintaining accessibility support.

Files Changed

  • lib/src/widgets/_search_box.dart - Simplified widget structure
  • pubspec.yaml - Version bump to 1.0.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions