Skip to content

Fix autocomplete not showing context menu by default#1010

Merged
Pante merged 1 commit intomainfrom
fix/autocomplete
May 8, 2026
Merged

Fix autocomplete not showing context menu by default#1010
Pante merged 1 commit intomainfrom
fix/autocomplete

Conversation

@Pante
Copy link
Copy Markdown
Member

@Pante Pante commented May 8, 2026

Describe the changes
Fixes #1006.

Checklist

  • I have read the CONTRIBUTING.md.
  • I have included the relevant unit/golden tests.
  • I have included the relevant samples.
  • I have updated the documentation accordingly.
  • I have added the required flutters_hook for widget controllers.
  • I have updated the CHANGELOG.md if necessary.

@Pante Pante self-assigned this May 8, 2026
Copilot AI review requested due to automatic review settings May 8, 2026 05:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes FAutocomplete so the system text editing context menu (Cut/Copy/Paste) is shown by default, matching standard text field behavior and resolving #1006.

Changes:

  • Set FAutocomplete.contextMenuBuilder default to FTextField.defaultContextMenuBuilder (instead of implicitly passing null down).
  • Document the fix in CHANGELOG.md.
  • Update the autocomplete docs snippet metadata (@Options(include: [features])).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
forui/lib/src/widgets/autocomplete/autocomplete.dart Ensures FAutocomplete provides a default context menu builder so selection actions are available by default.
forui/CHANGELOG.md Adds a changelog entry describing the FAutocomplete context menu fix.
docs_snippets/lib/examples/widgets/autocomplete.dart Adds missing @Options include for the features example set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread forui/lib/src/widgets/autocomplete/autocomplete.dart
@auto-maid
Copy link
Copy Markdown
Contributor

auto-maid Bot commented May 8, 2026

Documentation Preview

Latest Commit SHA 0486783
Preview URL https://81a9458a-forui-docs-dev.duobase.workers.dev/docs

You're seeing this because the docs/samples were updated.

@Pante Pante merged commit 4cfeb55 into main May 8, 2026
25 checks passed
@Pante Pante deleted the fix/autocomplete branch May 8, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FAutocomplete doesn't display Cut Copy Paste menu

2 participants