-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[issues] toggle filters btn behavior #4683
Conversation
018f951
to
1978b4e
Compare
My guess its' that it is the prevent default in the filter button click? https://github.com/liqd/adhocracy4/blob/main/adhocracy4/comments_async/static/comments_async/comment_box.jsx#L261 |
1978b4e
to
b81c69c
Compare
b81c69c
to
87f4474
Compare
I actually did some other fixing, the button focus is not that same as on the comments but I read that we shouldn't have btn randomly loose focus so will leave that, still think having a separate component is good though as will add to a4 next time we do stuff there |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! But the tests are failing
87f4474
to
bc54ac5
Compare
when fixing tests I realised that we shouldn't show the search string when we are ordering list so fixed that |
…4547, hide filters and found string when no ideas
…nd replaced span badges with div badges
bc54ac5
to
5f07dc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
@fuzzylogic2000 or @goapunk I am very confused with this, so the behavior we wish can be seen in the filter toggle for the comments, so I copied that code to make a component, planning to use it in a4 but wanted to test it first and even with exact classes it still shows being active after filters are opened, even though in comments it does not and I have wasted too much time on this by now so any ideas would be great!?