Skip to content

Commit

Permalink
Refactor FlatTermSelector into a functional component (#33459)
Browse files Browse the repository at this point in the history
* Refactor FlatTermSelector into a function component

* Combine selectors

* Use shared empty array reference

* Bring back extra checks

* Better names

* Remove search query character limit

Search is debounced now. I don't think there's a need for this limit anymore.
Use also might use tags with two characters, like WP.

* Don't try to create a new term if user doesn't have the correct capability

* Update default query args and set context to view

* Use a11y speak method directly

* Memorize unescaped term names

* Fix typo

* Don't disable FormTokenField when loading term objects

* Optimistic updates

* Use per page '-1', it's okay with 'include' query
  • Loading branch information
Mamaduka authored Nov 2, 2021
1 parent 368b8a8 commit d602f50
Showing 1 changed file with 220 additions and 254 deletions.
Loading

0 comments on commit d602f50

Please sign in to comment.