Skip to content

Commit

Permalink
[FIX] website: use currentTarget onLangChangeClick
Browse files Browse the repository at this point in the history
Before this commit, in case of Google Translate is enable, some content
can be wrapped in extra node.

Use currentTarget is more secure to get the right element clicked.

**Steps to reproduce:**
1. Add a website and multiple language
2. Create a page in 2 languages
3. Visit the website in Chrome and enable the translation by Google translate
4. Change the language and you should get an error similar to:

Error:
Uncaught TypeError: Cannot read property 'replace' of undefined

closes odoo#62849

X-original-commit: a2ebc05
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
  • Loading branch information
pfranck authored and Franck Plazanet committed Dec 3, 2020
1 parent 4f3ecc4 commit 5705814
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/cla/individual/pfranck.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Vietnam, 2020-11-02

I hereby agree to the terms of the Odoo Individual Contributor License
Agreement v1.0.

I declare that I am authorized and able to make this agreement and sign this
declaration.

Signed,

Franck Plazanet franck@plazanet.ovh https://github.com/pfranck

0 comments on commit 5705814

Please sign in to comment.