Skip to content

Clicking on a link in a Flutter Web page using an accessibility service causes the page to reload #146291

Closed
@math1man

Description

@math1man

Steps to reproduce

  1. Copy the repro project into DartPad and run it
  2. Enable accessibility in Flutter
  3. Use an accessibility service or a mouse to click on the button

Expected results

Nothing should happen, similar to clicking on the button with a mouse without enabling accessibility.

Actual results

The UI performs a screen transition as if it were some sort of navigation. I believe this symptom is also what is causing the reload in our app.

Code sample

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: InkWell(
            onTap: () {},
            child: Semantics(
              link: true,
              child: const Text('Hello, World!'),
            ),
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

Internal bug b/328226356

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressiona: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)customer: huggsy (g3)found in release: 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions