thcl-odoo
f09482c57f
[FIX] payment: use correct target on onclick event
...
Current behavior :
If we click on the icon rather than the label we got a crash
Steps to reproduce :
- Enable Online Payment and configure an acquirer and add the possibility to save the card
- Go to the Website and Log in (e.g. as `Marc Demo`)
- Go to your account (from dropdown menu > `My Account`)
- Manage you payment methods and add a new one
- Try to delete the newly added payment method by clicking on the trash icon in the button
Reason :
Currently, we rely on the `target` property of the event (triggered after clicking on the button).
The problem is that, as in this case, if a button has an HTML element as a child and we click on this child, `target` property will target the child whereas in this case we want to retrieve the button and not the child.
Using `currentTarget` property instead of `target` allows us to retrieve the button no matter what since `currentTarget` always refers to the element to which the event handler has been attached.
OPW-2660186
closes odoo/odoo#80253
X-original-commit: e8ec4fb6aa9ee4796d486a3d32e6a9a5e1382548
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com >
Signed-off-by: Claude Thibault (thcl) <thcl@odoo.com >
2021-11-23 13:55:05 +00:00
..
2021-11-23 09:39:52 +00:00
2021-11-22 14:48:04 +00:00
2021-11-10 06:49:58 +00:00
2021-11-22 14:48:04 +00:00
2021-11-08 08:40:13 +00:00
2021-11-22 14:48:04 +00:00
2021-09-30 18:27:56 +00:00
2021-09-16 07:17:40 +00:00
2021-11-08 09:25:47 +00:00
2021-11-23 11:12:14 +00:00
2021-09-02 14:15:12 +00:00
2021-11-02 08:29:35 +00:00
2021-09-16 07:17:40 +00:00
2021-09-16 07:17:40 +00:00
2021-10-07 17:59:52 +00:00
2021-11-10 09:58:09 +00:00
2021-11-12 18:07:15 +00:00
2021-11-22 14:48:04 +00:00
2021-09-16 07:17:40 +00:00
2021-11-22 14:48:04 +00:00
2021-11-05 18:59:44 +00:00
2021-11-19 19:36:49 +00:00
2021-10-29 16:05:23 +00:00
2021-11-22 14:48:04 +00:00
2021-11-22 11:12:44 +00:00
2021-10-28 09:17:34 +00:00
2021-10-07 13:09:33 +00:00
2021-11-23 06:46:52 +00:00
2021-10-29 16:05:23 +00:00
2021-11-17 08:26:25 +00:00
2021-10-05 16:54:21 +00:00
2021-09-16 07:17:40 +00:00
2021-11-10 09:58:09 +00:00
2021-11-23 11:12:04 +00:00
2021-10-29 16:05:23 +00:00
2021-10-19 15:58:58 +00:00
2021-11-09 14:45:49 +00:00
2021-09-16 07:17:40 +00:00
2021-11-22 14:48:04 +00:00
2021-11-19 17:18:50 +00:00
2021-11-16 19:20:57 +00:00
2021-11-22 14:48:04 +00:00
2021-10-26 19:40:39 +00:00
2021-11-22 14:48:04 +00:00
2021-10-19 15:58:58 +00:00
2021-11-23 11:12:04 +00:00
2021-10-05 16:54:21 +00:00
2021-10-28 12:21:19 +00:00
2021-11-10 14:30:50 +00:00
2021-10-11 10:15:49 +00:00
2021-11-22 11:56:46 +00:00
2021-09-23 07:17:43 +00:00
2021-11-22 14:48:04 +00:00
2021-11-22 14:48:04 +00:00
2021-11-23 12:04:00 +00:00
2021-11-18 18:45:19 +00:00
2021-11-22 07:06:19 +00:00
2021-11-22 14:48:04 +00:00
2021-10-04 11:29:55 +00:00
2021-11-23 06:46:46 +00:00
2021-11-08 13:24:14 +00:00
2021-09-21 16:08:47 +00:00
2021-11-17 07:39:41 +00:00
2021-11-23 11:12:04 +00:00
2021-09-16 07:17:40 +00:00
2021-11-18 10:53:59 +00:00
2021-11-23 12:04:00 +00:00
2021-09-16 07:17:40 +00:00
2021-10-18 16:26:44 +00:00
2021-10-27 13:16:42 +00:00
2021-11-22 14:48:04 +00:00
2021-11-22 16:27:09 +00:00
2021-11-22 14:48:04 +00:00
2021-10-07 17:59:52 +00:00
2021-10-07 17:59:52 +00:00
2021-10-19 15:58:58 +00:00
2021-11-16 19:20:57 +00:00
2021-10-13 15:23:01 +00:00
2021-10-28 08:33:24 +00:00
2021-11-19 18:08:50 +00:00
2021-10-26 19:40:59 +00:00
2021-10-05 16:54:08 +00:00
2021-09-30 18:27:56 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-11-08 09:25:47 +00:00
2021-11-18 10:06:19 +00:00
2021-10-05 16:53:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-11-09 14:46:05 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-28 08:33:17 +00:00
2021-10-28 08:33:17 +00:00
2021-10-28 08:33:17 +00:00
2021-10-28 08:33:17 +00:00
2021-10-28 08:33:17 +00:00
2021-11-09 14:46:05 +00:00
2021-10-01 12:40:54 +00:00
2021-10-07 13:09:33 +00:00
2021-11-05 13:00:41 +00:00
2021-11-19 12:51:05 +00:00
2021-10-01 12:40:54 +00:00
2021-09-27 16:56:27 +00:00
2021-10-01 12:40:54 +00:00
2021-11-23 12:04:16 +00:00
2021-11-17 08:26:28 +00:00
2021-11-22 14:48:04 +00:00
2021-11-16 10:49:27 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-09-16 07:17:40 +00:00
2021-10-01 12:40:54 +00:00
2021-10-06 12:39:54 +00:00
2021-09-02 11:47:49 +00:00
2021-10-05 07:27:20 +00:00
2021-10-27 15:48:51 +00:00
2021-11-19 12:51:05 +00:00
2021-11-10 19:50:10 +00:00
2021-10-01 12:40:54 +00:00
2021-11-08 11:08:06 +00:00
2021-10-15 07:24:49 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-11-09 14:46:05 +00:00
2021-11-09 14:46:05 +00:00
2021-10-01 12:40:54 +00:00
2021-11-22 14:48:04 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-11-05 08:49:47 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-18 15:13:08 +00:00
2021-11-16 10:49:27 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-10-01 12:40:54 +00:00
2021-11-08 12:38:59 +00:00
2021-10-01 12:40:54 +00:00
2021-11-23 11:12:04 +00:00
2021-11-16 13:46:56 +00:00
2021-11-23 13:54:57 +00:00
2021-11-09 14:45:49 +00:00
2021-11-16 08:20:34 +00:00
2021-09-16 07:17:40 +00:00
2021-09-16 07:17:40 +00:00
2021-11-23 11:12:04 +00:00
2021-11-16 16:58:35 +00:00
2021-09-07 18:08:03 +00:00
2021-10-14 09:28:09 +00:00
2021-11-16 16:58:35 +00:00
2021-09-16 07:17:40 +00:00
2021-10-22 11:09:16 +00:00
2021-11-23 11:12:04 +00:00
2021-10-11 10:15:49 +00:00
2021-11-22 11:56:46 +00:00
2021-11-22 14:48:04 +00:00
2021-11-22 14:48:04 +00:00
2021-10-18 11:36:58 +00:00
2021-11-22 14:48:04 +00:00
2021-10-27 15:48:51 +00:00
2021-11-17 15:52:19 +00:00
2021-11-17 15:52:19 +00:00
2021-10-06 12:39:43 +00:00
2021-10-19 14:43:42 +00:00
2021-11-23 13:55:05 +00:00
2021-10-05 18:05:46 +00:00
2021-11-17 15:00:47 +00:00
2021-11-22 14:48:04 +00:00
2021-09-22 20:39:12 +00:00
2021-10-07 17:59:52 +00:00
2021-11-08 09:25:47 +00:00
2021-09-16 07:17:40 +00:00
2021-11-22 14:48:04 +00:00
2021-11-05 17:14:42 +01:00
2021-11-22 14:48:04 +00:00
2021-11-22 14:48:04 +00:00
2021-11-05 19:44:49 +00:00
2021-11-15 11:22:40 +00:00
2021-09-28 09:28:50 +00:00
2021-11-22 14:48:04 +00:00
2021-11-22 14:48:04 +00:00
2021-11-22 14:48:04 +00:00
2021-09-16 07:17:40 +00:00
2021-10-12 17:03:41 +00:00
2021-11-22 14:48:04 +00:00
2021-09-07 15:50:00 +00:00
2021-10-27 15:48:51 +00:00
2021-09-16 07:17:40 +00:00
2021-09-16 07:17:48 +00:00
2021-09-16 07:17:40 +00:00
2021-11-23 12:04:00 +00:00
2021-11-23 11:12:14 +00:00
2021-09-16 07:17:40 +00:00
2021-11-23 11:12:14 +00:00
2021-11-23 11:12:14 +00:00
2021-11-02 16:59:56 +00:00
2021-11-22 14:48:04 +00:00
2021-11-17 15:52:19 +00:00
2021-10-26 06:44:20 +00:00
2021-11-03 14:12:46 +00:00
2021-10-27 15:48:51 +00:00
2021-09-16 07:17:40 +00:00
2021-11-22 14:48:04 +00:00
2021-11-10 09:58:09 +00:00
2021-11-22 14:48:04 +00:00
2021-11-23 12:04:00 +00:00
2021-11-23 11:12:04 +00:00
2021-10-05 16:54:21 +00:00
2021-10-19 15:58:58 +00:00
2021-10-11 10:15:49 +00:00
2021-11-15 11:22:40 +00:00
2021-11-16 19:20:57 +00:00
2021-09-03 12:45:58 +02:00
2021-11-22 14:48:04 +00:00
2021-11-16 13:03:03 +00:00
2021-10-26 06:44:19 +00:00
2021-11-23 12:04:00 +00:00
2021-11-23 11:12:14 +00:00
2021-11-23 12:04:00 +00:00
2021-10-15 14:58:53 +00:00
2021-10-22 17:34:39 +00:00
2021-10-27 15:48:51 +00:00
2021-11-08 07:59:42 +00:00
2021-11-23 12:04:00 +00:00
2021-10-18 10:22:02 +00:00
2021-09-16 07:17:40 +00:00
2021-10-06 07:03:59 +00:00
2021-11-22 14:48:04 +00:00
2021-10-29 16:05:23 +00:00
2021-11-22 14:48:04 +00:00
2021-11-16 13:03:25 +00:00
2021-10-27 15:48:51 +00:00
2021-10-27 15:48:51 +00:00
2021-11-22 14:48:04 +00:00
2021-10-05 16:54:21 +00:00
2021-11-23 09:39:34 +00:00
2021-11-19 19:36:49 +00:00
2021-10-04 09:16:19 +00:00
2021-09-07 15:50:01 +00:00
2021-11-23 09:39:50 +00:00
2021-11-16 16:58:36 +00:00
2021-11-16 16:58:36 +00:00
2021-11-19 18:53:45 +00:00
2021-09-30 17:12:12 +00:00
2021-11-08 10:16:04 +00:00
2021-09-30 17:12:12 +00:00
2021-09-16 07:17:40 +00:00
2021-11-23 11:12:04 +00:00
2021-11-23 10:26:08 +00:00
2021-11-22 14:48:11 +00:00
2021-09-16 07:17:40 +00:00
2021-10-04 07:57:00 +00:00
2021-10-07 17:59:52 +00:00
2021-11-23 11:12:18 +00:00
2021-11-09 14:45:49 +00:00
2021-10-20 10:27:46 +00:00
2021-10-29 16:05:23 +00:00
2021-11-22 19:31:51 +00:00
2021-10-15 14:58:53 +00:00
2021-11-17 13:05:53 +00:00
2021-10-04 15:30:26 +00:00
2021-10-04 15:30:26 +00:00
2021-10-04 15:30:26 +00:00
2021-09-16 07:17:40 +00:00
2021-10-26 19:40:39 +00:00
2021-09-16 07:17:40 +00:00
2021-09-16 07:17:40 +00:00
2021-10-26 19:40:39 +00:00
2021-10-11 10:15:49 +00:00
2021-10-26 19:40:39 +00:00
2021-09-14 07:10:49 +00:00
2021-09-16 07:17:40 +00:00
2021-09-18 05:42:55 +00:00
2021-11-23 09:39:35 +00:00
2021-10-04 07:57:00 +00:00
2021-10-04 14:12:26 +00:00
2021-10-29 16:05:23 +00:00
2021-09-16 07:17:40 +00:00
2021-10-04 15:31:06 +00:00
2021-10-15 14:58:53 +00:00
2021-11-17 17:25:55 +00:00
2021-10-22 11:09:17 +00:00
2021-11-22 14:48:04 +00:00
2021-11-16 13:03:04 +00:00
2021-09-16 07:17:40 +00:00
2021-09-03 15:45:08 +00:00
2021-09-16 07:17:40 +00:00
2021-11-16 13:03:03 +00:00
2021-09-07 15:50:01 +00:00
2021-09-03 15:45:08 +00:00
2021-11-23 09:39:35 +00:00
2021-11-16 13:03:00 +00:00
2021-11-16 13:03:01 +00:00
2021-11-16 13:03:00 +00:00
2021-11-23 09:39:35 +00:00
2021-11-23 09:39:35 +00:00
2021-11-23 09:39:34 +00:00