Skip to content

Commit

Permalink
revert auto-enabling semantics (flutter#24978)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjbanov authored Mar 12, 2021
1 parent dd0a048 commit e695fbd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/web_ui/lib/src/engine/semantics/semantics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1472,10 +1472,7 @@ class EngineSemanticsOwner {
/// Updates the semantics tree from data in the [uiUpdate].
void updateSemantics(ui.SemanticsUpdate uiUpdate) {
if (!_semanticsEnabled) {
// If we're receiving a semantics update from the framework, it means the
// developer enabled it programmatically, so we enable it in the engine
// too.
semanticsEnabled = true;
return;
}

final SemanticsUpdate update = uiUpdate as SemanticsUpdate;
Expand Down

0 comments on commit e695fbd

Please sign in to comment.