emad-elsaid / devtools

A set of simple tools every developer needs, collected in one application.
http://www.emadelsaid.com/devtools
MIT License
15 stars 6 forks source link

Pressing Enter in search field will open tool but not change current active link #13

Closed emad-elsaid closed 8 years ago

emad-elsaid commented 8 years ago

Scenario

  1. write any query
  2. press down to any tool
  3. press enter
  4. the right side will load the tool
  5. the highlighted item in sidebar will not change, although it is changed with clicking

    Cause

i think it is a rendering problem with ember, ember doesn't notify links that current path is changed, it is only notified if you click it

Solution

solution should include rerendering all tools links or fire up any application global event to change currently active link and set active state to the new one.

another problem may be that i get router from an ember component and call transitionTo to change to the route, which is a discouraged practice in components.