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
[maps] fix expand layer control is not clickable when layers are loading #170912
Conversation
Pinging @elastic/kibana-presentation (Team:Presentation) |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
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.
lgtm! nice fix!
code review and tested in browser
…ing (elastic#170912) Closes elastic#170911 root problem is that `EuiButton*` components are disabled when passed `isLoading` property. Re-worked component to not pass `isLoading` to `EuiButton*` ### Test instructions 1. create new map 2. click "Collapse layers panel" to collapse layer control 3. open browser dev tools. Open network tab and select "Slow 3G" 4. Pan and zoom map to cause basemap tiles to load. "Expand layers panel" button should be clickable during loading --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit bc2202d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…re loading (#170912) (#171025) # Backport This will backport the following commits from `main` to `8.11`: - [[maps] fix expand layer control is not clickable when layers are loading (#170912)](#170912) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2023-11-10T14:00:05Z","message":"[maps] fix expand layer control is not clickable when layers are loading (#170912)\n\nCloses #170911 problem is that `EuiButton*` components are disabled when passed\r\n`isLoading` property. Re-worked component to not pass `isLoading` to\r\n`EuiButton*`\r\n\r\n### Test instructions\r\n1. create new map\r\n2. click \"Collapse layers panel\" to collapse layer control\r\n3. open browser dev tools. Open network tab and select \"Slow 3G\"\r\n4. Pan and zoom map to cause basemap tiles to load. \"Expand layers\r\npanel\" button should be clickable during loading\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"bc2202df1ae226f97068b4709050741949f35923","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","Feature:Maps","v8.12.0","v8.11.1"],"number":170912,"url":"#170912 fix expand layer control is not clickable when layers are loading (#170912)\n\nCloses #170911 problem is that `EuiButton*` components are disabled when passed\r\n`isLoading` property. Re-worked component to not pass `isLoading` to\r\n`EuiButton*`\r\n\r\n### Test instructions\r\n1. create new map\r\n2. click \"Collapse layers panel\" to collapse layer control\r\n3. open browser dev tools. Open network tab and select \"Slow 3G\"\r\n4. Pan and zoom map to cause basemap tiles to load. \"Expand layers\r\npanel\" button should be clickable during loading\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"bc2202df1ae226f97068b4709050741949f35923"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"#170912 fix expand layer control is not clickable when layers are loading (#170912)\n\nCloses #170911 problem is that `EuiButton*` components are disabled when passed\r\n`isLoading` property. Re-worked component to not pass `isLoading` to\r\n`EuiButton*`\r\n\r\n### Test instructions\r\n1. create new map\r\n2. click \"Collapse layers panel\" to collapse layer control\r\n3. open browser dev tools. Open network tab and select \"Slow 3G\"\r\n4. Pan and zoom map to cause basemap tiles to load. \"Expand layers\r\npanel\" button should be clickable during loading\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"bc2202df1ae226f97068b4709050741949f35923"}},{"branch":"8.11","label":"v8.11.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Closes #170911
root problem is that
EuiButton*
components are disabled when passedisLoading
property. Re-worked component to not passisLoading
toEuiButton*
Test instructions