changeset 3b915b706085 in sao:6.2
details: https://hg.tryton.org/sao?cmd=changeset&node=3b915b706085
description:
        Set button type to link buttons

        Otherwise they are triggered by the form of the dialog when using 
+Enter.

        issue11193
        review380271002
        (grafted from 3aed6c2db5e3276977aa8a0d4178d9adce54306d)
diffstat:

 src/view/form.js |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r a5bef51d8277 -r 3b915b706085 src/view/form.js
--- a/src/view/form.js  Thu Feb 03 16:03:18 2022 +0100
+++ b/src/view/form.js  Thu Feb 03 22:27:19 2022 +0100
@@ -955,6 +955,7 @@
             this.el = jQuery('<button/>', {
                 'class': this.class_ + ' btn btn-link',
                 'name': attributes.name,
+                'type': 'button',
             });
             if (attributes.icon) {
                 var img = jQuery('<img/>', {

Reply via email to