Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow extensions to modify the minimum search length in the Search component #3129

Closed
dsevillamartin opened this issue Oct 27, 2021 · 0 comments · Fixed by #3130
Closed

Allow extensions to modify the minimum search length in the Search component #3129

dsevillamartin opened this issue Oct 27, 2021 · 0 comments · Fixed by #3130
Assignees
Milestone

Comments

@dsevillamartin
Copy link
Member

Feature Request

Is your feature request related to a problem? Please describe.
Allow modifying the minimum search length for the Search component.

Describe the solution you'd like
Use this.constructor instead of Search directly so that subclasses can modify the static MIN_SEARCH_LEN

Justify why this feature belongs in Flarum's core, rather than in a third-party extension
This is core code that would allow extensions to not have to copy & paste the search handling to modify this aspect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant