Elastic: Fix inconsistent focus on custom-select

That's a Bootstrap bug, but we override colors anyway.
pull/5578/merge
Aleksander Machniak 6 years ago
parent 13ad9e6593
commit 23898c8afe

@ -92,7 +92,6 @@ input.smart-upload {
td.rowactions {
width: 1%;
.custom-select,
.form-control {
width: auto;
}

@ -732,7 +732,10 @@ function rcube_elastic_ui()
var supported_controls = 'input:not(.button,[type=button],[type=file],[type=radio],[type=checkbox]),textarea';
$(supported_controls, $('.propform', context)).addClass('form-control');
$('[type=checkbox]', $('.propform', context)).addClass('form-check-input');
$('select', context).addClass('custom-select');
// Note: On selects we add form-control to get consistent focus
// and to not have to create separate rules for selects and inputs
$('select', context).addClass('form-control custom-select');
if (context != document) {
$(supported_controls, context).addClass('form-control');

Loading…
Cancel
Save