From 4a2493d30c3025317304e2e5340ec3df56ee1512 Mon Sep 17 00:00:00 2001
From: cagataycivici <cagatay.civici@gmail.com>
Date: Thu, 23 Jul 2020 11:18:34 +0300
Subject: [PATCH] Fixed #406 - Refactor selectbutton focus visuals

---
 src/components/selectbutton/SelectButton.vue | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/components/selectbutton/SelectButton.vue b/src/components/selectbutton/SelectButton.vue
index 4d4ecd7cf..2f403f204 100755
--- a/src/components/selectbutton/SelectButton.vue
+++ b/src/components/selectbutton/SelectButton.vue
@@ -27,11 +27,6 @@ export default {
         dataKey: null,
         ariaLabelledBy: null
     },
-    data() {
-        return {
-            focusedIndex: null
-        };
-    },
     methods: {
         getOptionLabel(option) {
             return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
@@ -87,18 +82,15 @@ export default {
             return selected;
         },
         onFocus(event, index) {
-            this.focusedIndex = index;
             this.$emit('focus', event);
         },
         onBlur(event) {
-            this.focusedIndex = null
             this.$emit('blur', event);
         },
         getButtonClass(option, i) {
             return ['p-button p-component', {
                 'p-highlight': this.isSelected(option),
-                'p-disabled': this.isOptionDisabled(option),
-                'p-focus': (i === this.focusedIndex)
+                'p-disabled': this.isOptionDisabled(option)
             }];
         }
     },