Fixed #606 - DataTable multiple click RadioButton focus previous row

pull/682/head
Cagatay Civici 2020-11-25 17:26:52 +03:00
parent 3e0e992198
commit 04bdc70afc
35 changed files with 104 additions and 8 deletions

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; border-color: #ef9a9a;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #383838; background-color: #383838;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; border-color: #ef9a9a;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #383838; background-color: #383838;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; border-color: #ef9a9a;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #383838; background-color: #383838;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; border-color: #ef9a9a;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #383838; background-color: #383838;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f19ea6; border-color: #f19ea6;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #3f4b5b; background-color: #3f4b5b;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f19ea6; border-color: #f19ea6;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #3f4b5b; background-color: #3f4b5b;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #dc3545; border-color: #dc3545;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #efefef; background-color: #efefef;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #dc3545; border-color: #dc3545;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #efefef; background-color: #efefef;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #a4252c; border-color: #a4252c;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #faf9f8; background-color: #faf9f8;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #e57373; border-color: #e57373;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #4b4b4b; background-color: #4b4b4b;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #e57373; border-color: #e57373;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #4b4b4b; background-color: #4b4b4b;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #e57373; border-color: #e57373;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #4b4b4b; background-color: #4b4b4b;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #e57373; border-color: #e57373;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #4b4b4b; background-color: #4b4b4b;

View File

@ -1107,6 +1107,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f44435; border-color: #f44435;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: rgba(255, 255, 255, 0.06); background-color: rgba(255, 255, 255, 0.06);

View File

@ -1107,6 +1107,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f44435; border-color: #f44435;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: rgba(255, 255, 255, 0.06); background-color: rgba(255, 255, 255, 0.06);

View File

@ -1107,6 +1107,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #B00020; border-color: #B00020;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f5f5f5; background-color: #f5f5f5;

View File

@ -1107,6 +1107,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #B00020; border-color: #B00020;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f5f5f5; background-color: #f5f5f5;

View File

@ -1107,6 +1107,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f44435; border-color: #f44435;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: rgba(255, 255, 255, 0.06); background-color: rgba(255, 255, 255, 0.06);

View File

@ -1107,6 +1107,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f44435; border-color: #f44435;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: rgba(255, 255, 255, 0.06); background-color: rgba(255, 255, 255, 0.06);

View File

@ -1107,6 +1107,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #B00020; border-color: #B00020;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f5f5f5; background-color: #f5f5f5;

View File

@ -1107,6 +1107,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #B00020; border-color: #B00020;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f5f5f5; background-color: #f5f5f5;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #a80000; border-color: #a80000;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f4f4f4; background-color: #f4f4f4;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #a80000; border-color: #a80000;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f4f4f4; background-color: #f4f4f4;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #a80000; border-color: #a80000;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f4f4f4; background-color: #f4f4f4;

View File

@ -1087,6 +1087,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #a80000; border-color: #a80000;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f4f4f4; background-color: #f4f4f4;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #e7a3a3; border-color: #e7a3a3;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f4f4f4; background-color: #f4f4f4;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f44336; border-color: #f44336;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f8f9fa; background-color: #f8f9fa;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f44336; border-color: #f44336;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f8f9fa; background-color: #f8f9fa;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f44336; border-color: #f44336;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f8f9fa; background-color: #f8f9fa;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f44336; border-color: #f44336;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #f8f9fa; background-color: #f8f9fa;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; border-color: #ef9a9a;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #304562; background-color: #304562;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; border-color: #ef9a9a;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #304562; background-color: #304562;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; border-color: #ef9a9a;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #304562; background-color: #304562;

View File

@ -1083,6 +1083,9 @@
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box { .p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #ef9a9a; border-color: #ef9a9a;
} }
.p-radiobutton:focus {
outline: 0 none;
}
.p-input-filled .p-radiobutton .p-radiobutton-box { .p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #304562; background-color: #304562;

View File

@ -1,9 +1,6 @@
<template> <template>
<div class="p-radiobutton p-component" @click="onClick"> <div class="p-radiobutton p-component" @click="onClick" tabindex="0" @focus="onFocus($event)" @blur="onBlur($event)">
<div class="p-hidden-accessible"> <div ref="box" :class="['p-radiobutton-box p-component', {'p-highlight': checked, 'p-disabled': $attrs.disabled, 'p-focus': focused}]" role="radio" :aria-checked="checked">
<input ref="input" type="radio" :checked="checked" @focus="onFocus($event)" @blur="onBlur($event)" :disabled="$attrs.disabled">
</div>
<div ref="box" :class="['p-radiobutton-box p-component', {'p-highlight': checked, 'p-disabled': disabled, 'p-focus': focused}]" role="radio" :aria-checked="checked">
<div class="p-radiobutton-icon"></div> <div class="p-radiobutton-icon"></div>
</div> </div>
</div> </div>
@ -15,7 +12,6 @@ export default {
emits: ['change'], emits: ['change'],
props: { props: {
value: null, value: null,
disabled: null,
checked: null checked: null
}, },
data() { data() {
@ -32,8 +28,6 @@ export default {
data: this.value data: this.value
}); });
} }
this.$refs.input.focus();
} }
}, },
onFocus() { onFocus() {