In the newest versions of ExB Developer I don't have this issue. It only exists in version Dev Edition 1.14 and Enterprise 11.3 of Experience Builder.
The Switch component is not animating between its two states. It does fire the events but it does not change appearance.
Has anyone else had this issue? I'd like to determine if it's a known bug and I need to implement a custom solution, or if my code is somehow causing an issue.
When I build my widget with the latest ExB version I don't have this problem.
import { Tabs, Tab, Button, Label, NumericInput, ValidityResult, TextInput, Scrollable, CollapsablePanel, TextArea, Loading, UrlInput, Switch } from 'jimu-ui'
<Switch defaultChecked={this.state.wetland_enabled}
onChange={this.StateUpdates.setWetlandEnabled}></Switch>
Solved! Go to Solution.
Try changing defaultChecked to checked.
Try changing defaultChecked to checked.
Hi @JeffreyThompson2 ,
That worked! Thanks for the recommendation. The defaultChecked property must be a new property.
Thanks!!