| @@ -146,10 +146,8 @@ | ||
| 146 | 146 | |
| 147 | 147 | let labelledBy = id ? jQuery( `#for_${ id }` ) : false; |
| 148 | 148 | labelledBy = id && labelledBy.length ? `aria-labelledby="${ labelledBy.attr( 'id' ) }"` : ''; |
| 149 | 149 | |
| 150 | - // Set empty title attributes so that none of the dropdown options include title attributes. | |
| 151 | - $select.find( 'option' ).attr( 'title', ' ' ); | |
| 152 | 150 | $select.multiselect( { |
| 153 | 151 | templates: { |
| 154 | 152 | popupContainer: '<div class="multiselect-container frm-dropdown-menu dropdown-menu"></div>', |
| 155 | 153 | option: '<button type="button" class="multiselect-option dropdown-item frm_no_style_button"></button>', |
| @@ -161,9 +159,9 @@ | ||
| 161 | 159 | allSelectedText: '', |
| 162 | 160 | // This is 3 by default. We want to show more options before it starts showing a count. |
| 163 | 161 | numberDisplayed: 8, |
| 164 | 162 | onInitialized( _, $container ) { |
| 165 | - $container.find( '.multiselect.dropdown-toggle' ).removeAttr( 'title' ); | |
| 163 | + $container.find( '.multiselect.dropdown-toggle,.multiselect-option.dropdown-item' ).removeAttr( 'title' ); | |
| 166 | 164 | }, |
| 167 | 165 | onDropdownShown( event ) { |
| 168 | 166 | const action = jQuery( event.currentTarget.closest( '.frm_form_action_settings, #frm-show-fields' ) ); |
| 169 | 167 | if ( action.length ) { |
| @@ -556,9 +554,9 @@ | ||
| 556 | 554 | |
| 557 | 555 | function isTinyMceActive() { |
| 558 | 556 | const { id } = editor; |
| 559 | 557 | const wrapper = document.getElementById( `wp-${ id }-wrap` ); |
| 560 | - return null !== wrapper && wrapper.classList.contains( 'tmce-active' ); | |
| 558 | + return wrapper && wrapper.classList.contains( 'tmce-active' ); | |
| 561 | 559 | } |
| 562 | 560 | |
| 563 | 561 | function setUpTinyMceVisualButtonListener() { |
| 564 | 562 | jQuery( document ).on( |