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

Update expand icon on expanded change #3703

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented Jul 20, 2022

Fixes #3646

By going through the rows when expanded is changed and resetting the expand icon for each row.

@codecov
Copy link

codecov bot commented Jul 20, 2022

Codecov Report

Merging #3703 (2b241eb) into master (7a4c221) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3703      +/-   ##
==========================================
- Coverage   83.76%   83.76%   -0.01%     
==========================================
  Files         210      210              
  Lines       30202    30223      +21     
==========================================
+ Hits        25300    25317      +17     
- Misses       4902     4906       +4     
Flag Coverage Δ
ui-tests 33.27% <ø> (+0.03%) ⬆️
unitexamples-tests 77.03% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
panel/tests/ui/widgets/test_tabulator.py 98.17% <ø> (+0.09%) ⬆️
panel/io/reload.py 69.56% <0.00%> (-2.18%) ⬇️
panel/tests/util.py 85.14% <0.00%> (-1.99%) ⬇️
panel/io/state.py 68.11% <0.00%> (-0.15%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment on lines 261 to 263
if (row.cells.length > 0) {
row.cells[0].layoutElement()
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (row.cells.length > 0) {
row.cells[0].layoutElement()
}
if (row.cells.length > 0)
row.cells[0].layoutElement()

@philippjfr philippjfr force-pushed the update_icon_on_expanded_change branch from aaeb982 to 2b241eb Compare August 10, 2022 19:57
@philippjfr philippjfr merged commit 235dc11 into master Aug 10, 2022
@philippjfr philippjfr deleted the update_icon_on_expanded_change branch August 10, 2022 20:15
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.

Tabulator: Expanding rows by setting expanded doesn't update ► to ▼
2 participants