[#32240] Fix broken template style editing. Fix #2217