mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:56:01 +08:00
20840c341f
What is the problem here? When transiting between `/filter` routes with different `q` query params, the input field is not updating to include the values in the `q` query param. This was because we were setting the value of the input field in the constructor of the controller but controllers are actually singletons in Ember so setting the value of the input field is only done once when the controller is initialised. What is the fix here? Instead of setting the value of the input field in the controller, we set the value in the `setupController` hook in the route file. |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |