So , I am thinking to another implementation. 
The aim  of my focus management was trying to implement an excel like 
navigation.
To do this, I created a directive associated to each input. And then being 
managed in the childs row component.
I think this should be managed by the parent table component to avoid this 
kind of problem.
Either with a service or other implementation.
After few searches, I found angular material had a FocusMonitor service.
This may help me solving my issue*." It's more powerful than just listening 
for focus or blurevents because it tells you how the element was focused 
(via mouse, keyboard, touch, or programmatically). It also allows listening 
for focus on descendant elements if desired."*
https://material.angular.io/cdk/a11y/overview


Le vendredi 5 avril 2019 15:06:36 UTC+2, Stéphane Ancelot a écrit :
>
> Hi,
>
> I have got a list of components organized in table rows.
>
> each time a row is modifed, the data are sent to the backend and returned 
> back to the application with updated fields.
>
> the view is rebuilt with these data and my focus lost.
>
> The problem is that I will have to focus again the field that was selected 
> before the view was rebuilt with the new data.
>
> Regards,
> S.Ancelot
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to