Before this commit, any changes made to label input field were lost when the LinkDialog or LinkTools component was re-rendered. This commit fixes it without leveraging OWL's reactivity/declarative approach, because most of the code in these components is imperative and not yet converted to the OWL paradigm, leaving such refactor to be done in the master branch. Part-of: odoo/odoo#136278