stream
stream copied to clipboard
Help Screen filters are not working properly
Bug Report
Expected Behavior
When clicking the help screen columns it should hide/show appropriate filters and columns
Actual Behavior
Column show/hide works as expected. However, filters are not. If you uncheck action checkbox it hides context column
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();
}