stream icon indicating copy to clipboard operation
stream copied to clipboard

Help Screen filters are not working properly

Open nprasath002 opened this issue 5 years ago • 0 comments

Bug Report

Expected Behavior

When clicking the help screen columns it should hide/show appropriate filters and columns

Screen Shot 2019-12-04 at 11 37 09 AM

Actual Behavior

Column show/hide works as expected. However, filters are not. If you uncheck action checkbox it hides context column

Screen Shot 2019-12-04 at 11 39 14 AM

I looked into the code in stream/ui/js/admin.js

							if ( $( this ).is( ':checked' ) ) {
								$( '[name="' + id + '"]' ).prev( '.select2-container' ).show();
							} else {
								$( '[name="' + id + '"]' ).prev( '.select2-container' ).hide();
							}

Changing the above code to the following fixes the issue

							if ( $( this ).is( ':checked' ) ) {
								$( '[name="' + id + '"]' ).next( '.select2-container' ).show();
							} else {
								$( '[name="' + id + '"]' ).next( '.select2-container' ).hide();
							}

nprasath002 avatar Dec 04 '19 06:12 nprasath002