I had teachers like that. I was reading well beyond my grade level (I read the third pandemic and sphere in 5th grade, both roughly college-level, I just had a dictionary with me).
Fifth grade teacher said I couldn’t understand them, they were beyond my level. I mouthed off to her and told her they might be beyond her level, but not mine. I got detention.
I told my mom what happened, who then went in and laid into that teacher. She bought me the books for my birthday, and gave me the dictionary so I could understand them, because teen and young adult stuff was no longer long enough, I’d burn through the books in a few hours, tops. Big complicated books were the only thing that kept me occupied. She was not willing to allow some rando to fuck that up. Needless to say that teacher never said shit to me about it again.
Did have that detention. I brought my book and didn’t even care about being sat there for an hour. So that backfired.
I hope your daughter gets that love back sooner or later, maybe just need a cooling down period. For me it never faded, I just lost all reapect for that teacher because even then I knew it was stupid to judge someone for doing something they enjoyed.