paulglx / arbitre

Automated code correction platform
https://arbitre.thd.telecom-sudparis.eu
GNU General Public License v3.0
4 stars 0 forks source link

Course Owners/Tutors search box defocuses on input #61

Open paulglx opened 3 weeks ago

paulglx commented 3 weeks ago

To reproduce : on a course, go to the "Teachers" tab and type in either boxes.

paulglx commented 3 weeks ago

The issue occurs because TeacherList re-renders when UserList changes. This doesn't happen in Students, although it seems like the implementation is the same. The change is triggered by a hook marked as Anonymous with no significant data by React Profiler.

TODO : Investigate why the TeacherList props seem to change.