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
Crash when opening cells in different sections #15
Comments
Please could you let me know if it's a bug with ExpandableCell or with my implementation? |
I will check it |
Really appreciate it. Thank-you! |
same issue here, |
The problem is with the index of cells i guess, when you expand a cell the count of cells will changes. |
@hadiidbouk Yes. Not sure how to fix that though. |
Hello @nishaddangui , @hadiidbouk @Spark3000 , |
The fact that i am working on a fork of this project to add the highlight methods, when i press on a cell the highlight will be on a wrong cell when there is a cell open, to fix the problem you can call a function after calling 'open' and 'close' in the ExpandableCell that can refresh the cells count. |
@hadiidbouk Really appreciate if you send me PR :) |
Sure, when i finish from it 👍 |
@younatics put closeAll() right before open(indexPath: indexPath, delegate: delegate) in didSelectRow |
can you solve this issue? |
I fixed this issue in one of the recent commits |
@pikaboo How did you fix this? |
Hi. I get a crash when trying to open expandable cells in different sections. Index out of range. Works fine when opening multiple expandable cells in the same section just not in two (or more I'm assuming) different sections. I need this to work without closing the already opened cell. Not sure how to fix this.
Simplest ViewController code below:
The text was updated successfully, but these errors were encountered: