Title: Bug when using tabs
Last modified: September 29, 2017

---

# Bug when using tabs

 *  Resolved [Steve Jones](https://wordpress.org/support/users/stevejonesdev/)
 * (@stevejonesdev)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/)
 * Looks like there is an issue when you use this plugin in an ACF tab. There are
   duplicate dropdowns and the preview icon for all fields defaults to the first
   icon in the list.
 * Screenshot:
    [https://www.dropbox.com/s/gpggojg41d906pm/Screenshot%202017-09-29%2009.36.28.png?dl=0](https://www.dropbox.com/s/gpggojg41d906pm/Screenshot%202017-09-29%2009.36.28.png?dl=0)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/#post-9543153)
 * Hi Steve thank you for reporting the issue you are seeing. Can you let me know
   which version of ACF you are running, and confirm that you are on the latest 
   version of my plugin as well?
 * In your screenshot, it looks like this is perhaps a repeater? Is this a repeater
   inside of a tab?
 *  Thread Starter [Steve Jones](https://wordpress.org/support/users/stevejonesdev/)
 * (@stevejonesdev)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/#post-9543276)
 * I’m on the most recent versions of everything. See screenshot. The FontAwesome
   field is in a repeater under a tab on an options page. Hope that helps.
 * [https://www.dropbox.com/s/c57g1km9a13i8sy/Screenshot%202017-09-29%2013.11.33.png?dl=0](https://www.dropbox.com/s/c57g1km9a13i8sy/Screenshot%202017-09-29%2013.11.33.png?dl=0)
 *  [saulirajala](https://wordpress.org/support/users/saulirajala/)
 * (@saulirajala)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/#post-9552725)
 * I can verify this bug. I have ACF Pro 5.6.2 and Advanced Custom Fields: Font 
   Awesome Field version 2.0.5.
 * Issue only appears when using font-awesome field inside of repeater-field, which
   is inside of inactive tab. When user clicks to open the tab, it will tricker 
   show_field js-action. The problem lies in row 54 of input-v5.js, which updates
   preview icon with the value of first select.fontawesome-edit.
    -  This reply was modified 8 years, 7 months ago by [saulirajala](https://wordpress.org/support/users/saulirajala/).
 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/#post-9552740)
 * Thanks guys, I have this fixed in version 2.0.6 but I am not done with QA yet.
   Hope to release soon!
 *  [saulirajala](https://wordpress.org/support/users/saulirajala/)
 * (@saulirajala)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/#post-9552797)
 * I putted this to my theme to fix issue for now:
 *     ```
       acf.add_action( 'show_field', function ( field, context ) {
               if ( 'tab' == context && field.children( '.acf-input' ).children( '.acf-fields' ).length > 0 ) {
                 jQuery( '.icon_preview' ).each( function ( elem ) {
                   var ValueOfSelect = jQuery( this ).siblings( 'select' ).val();
                   jQuery( this ).children( 'i' ).removeClass();
                   jQuery( this ).children( 'i' ).addClass( 'fa ' + ValueOfSelect );
                 } );
               }
             } );
       ```
   
 * This fix doesn’t work out of the box in the plugin itself, but I hope you can
   get some ideas for solution from my fix 🙂
 *  [saulirajala](https://wordpress.org/support/users/saulirajala/)
 * (@saulirajala)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/#post-9552801)
 * Oops! Sorry, I just noticed your previous answer. Thanks for the fix!
 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/#post-9554009)
 * Sorry for the delay. Just released v2.0.6 and this and some other similar issues
   should be fixed now. Let me know if you run into any further issues!
 * Thanks,
 * Matt

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Bug when using tabs’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields-font-awesome/assets/icon-256x256.
   jpg?rev=3435775)
 * [Advanced Custom Fields: Font Awesome Field](https://wordpress.org/plugins/advanced-custom-fields-font-awesome/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-font-awesome/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-font-awesome/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-font-awesome/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-font-awesome/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/bug-when-using-tabs/#post-9554009)
 * Status: resolved