Friday, March 3, 2023
1 change
Resolved issues and error corrections
The Knowledge app now correctly keeps the Add Cover button responsive after interface updates. This prevents intermittent failures when users try to add a cover image, improving reliability without changing the feature itself.
Original PR description
Before this commit, and with the last version of owl [1], the knowledge_cover_selector_tour tour failed almost all the time, because at some point, the "Add cover" button had no mousedown event on it. This is because the useEffect used to add the event handler didn't correctly defined its dependencies: when the button changes, the handler must be re-added. It has been highlighted by the update of owl because it slightly changes the way refs are handled, and something that was luckily working before (whereas it shouldn't have) wasn't anymore. [1] odoo/odoo@abaf9d0e70a480252afcf0e08f2a3c68fbbafa00