We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3095aa6 commit d27e7cdCopy full SHA for d27e7cd
1 file changed
web/js/events.js
@@ -219,9 +219,14 @@ const VE = {
219
},
220
221
create: function () {
222
- const buttonGroup = $(this).closest('.ui-dialog').find('.ui-dialog-buttonset');
223
- buttonGroup.find('button:first').addClass('button submit');
224
- buttonGroup.find('button:last').addClass('button button-secondary cancel');
+ const buttons = $(this).dialog('widget').find('.ui-dialog-buttonpane button');
+ buttons.first().addClass('button submit');
+ buttons.last().addClass('button button-secondary cancel');
225
+ },
226
+ focus: function () {
227
228
+ // Disable default "focus first button" behavior
229
+ buttons.first().blur();
230
231
};
232
0 commit comments