Skip to content

Conversation

@nenb
Copy link
Contributor

@nenb nenb commented Dec 17, 2023

Addresses #229.

Currently a new chat info button is created whenever the UI is updated. This creates a problem as when the UI is re-rendered it is still referencing the original button (which has not actually been updated). To fix this issue a button should only be created once and then updated in place prior to each re-render.

Copy link
Member

@pmeier pmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nenb! Can confirm that this fixes the issue. LGTM after my comments have been addressed!

Currently a new chat info button is created whenever the UI is updated. This
creates a problem as when the UI is re-rendered it is still referencing the
original button (which has not actually been updated). To fix this issue a
button should only be created once and then updated in place prior to each
re-render.
@nenb nenb force-pushed the chat-info-button-correct-render branch from 9e91b4c to 948e27c Compare December 18, 2023 17:19
@nenb
Copy link
Contributor Author

nenb commented Dec 18, 2023

@pmeier I've added your suggestions and I think this should be ready for merge now.

Copy link
Member

@pmeier pmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nenb! I took the liberty to merge style sheet and callback into the constructor.

@pmeier pmeier merged commit a437e7e into Quansight:main Dec 18, 2023
pmeier added a commit that referenced this pull request Dec 20, 2023
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
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

Successfully merging this pull request may close these issues.

2 participants