Select to view content in your preferred language

Jimu-UI Switch in ExB v1.14 & Enterprise 11.3

167
2
Jump to solution
02-19-2025 06:50 AM
rhughes522
Occasional Contributor

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>
 

 

 

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JeffreyThompson2
MVP Frequent Contributor

Try changing defaultChecked to checked.

GIS Developer
City of Arlington, Texas

View solution in original post

2 Replies
JeffreyThompson2
MVP Frequent Contributor

Try changing defaultChecked to checked.

GIS Developer
City of Arlington, Texas
rhughes522
Occasional Contributor

Hi @JeffreyThompson2 ,

That worked!  Thanks for the recommendation.  The defaultChecked property must be a new property.

Thanks!!

0 Kudos