-
Notifications
You must be signed in to change notification settings - Fork 58
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
Refactor ToggleButton
and ToggleGroup
#3509
Conversation
BREAKING CHANGE: Removes the deprecated DigitizeButton in favour of the DrawButton
Remove the deprecated `DigitizeButton` in favour of the `DrawButton`
BREAKING CHANGE: mappify, loadify, isVisibleComponent HOCs as well as MapProvider class were removed
Remove some deprecated HOCs
Dependency updates
BREAKING CHANGE: Panel, Window and Titlebar components are not existing anymore
Remove Window, Panel and Titlebar component
refactor: remove toolbar component
refactor: remove userchip component
Eslint: homogenize / sort imports using simple-sort-plugin
if (onClick) { | ||
onClick(evt); | ||
|
||
if (evt.defaultPrevented) { |
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.
Why is this preventing onChange
but not onClick
?
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.
And why is it preventing onChange
only if onClick
is set?
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.
This might be a refactor-artifact. Will double check, but I assume it can be removed.
146986f
to
31fcc9f
Compare
728ec8f
to
7ddba57
Compare
BREAKING CHANGE: the AddWmsLayerEntry accepts a map prop now (required for attributions)
Update dependencies (`rg-future`)
BREAKING CHANGE: use geolocation hook of react-util
chore: refactor geolocation button
BREAKING CHANGE: The pressed state of the ToggleButton is controlled now
7ddba57
to
96d58ed
Compare
Description
This simplifies the internal handling of the
ToggleButton
andToggleGroup
components.TODOs:
GeolocationButton
andMeasureButton
aren't implementing the needed control of the pressed state, this will be done after they have been transformed to functional components (in a follow up PR)GeolocationButton
✔️MeasureButton
✔️the tests are still failing and need to be adjusted (in this PR)✔️there are some linting errors left (in this PR)✔️Please review @terrestris/devs.
Related issues or pull requests
--
Pull request type
Do you introduce a breaking change?
Checklist
BSD-2-Clause.
npm test
locally).