Skip to content
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

Strange behaviour when collapse/expand groups #926

Open
testuserx opened this issue Apr 17, 2014 · 1 comment
Open

Strange behaviour when collapse/expand groups #926

testuserx opened this issue Apr 17, 2014 · 1 comment

Comments

@testuserx
Copy link

I created post in SO: http://stackoverflow.com/questions/23007265/slickgrid-grouping-expand-collapse-strange-behaviour

Please check the jsFiddle: http://jsfiddle.net/8z3st/

When click on "Accepted" group and expand, you will see all options, except "Third", but total will be seen for this option (in strange place). When you will click after that on, for example, option "Second", you will see the "Third".

I tried to create this from scratch, using original SlickGrid examples, but got the same problem.

@icoxfog417
Copy link
Contributor

I think it relates to #841 & #896.
Pull #898 is my pull request for fix these. I confirmed your jsFiddle is work fine by this fix.

http://jsfiddle.net/icoxfog417/Tdha8/

jesenko pushed a commit to plandela/SlickGrid that referenced this issue Dec 29, 2023
…mleibman#926)

- when calling `applyHtmlCode` when a native element, we use `appendChild` but of course that will append to what already exist, however in the case of the util we should always clear the target element first since that is what we do when passing html string (assigning with `innerHTML` will overwrite any previous content)
- this was caught in one of the example when collapsing groups, we ended up seeing duplicate groups and this came up after converting SlickGroupItemMetadataProvider Formatter to return native element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants