8000 GSField.spinner not updating value when refreshing state · Issue #28 · ritagroup/gsform · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

GSField.spinner not updating value when refreshing state #28

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

Open
thzuma opened this issue Oct 12, 2024 · 0 comments
Open

GSField.spinner not updating value when refreshing state #28

thzuma opened this issue Oct 12, 2024 · 0 comments

Comments

@thzuma
Copy link
thzuma commented Oct 12, 2024

I am using Bloc. Whenever I fire an event on the onChange callback that will eventually update the app's state, the value changes in the background, but the spinner keeps showing an old value.

Below is how I implemented the spinner

GSField.spinner( errorMessage: 'Please make a selection', hint: 'Vehicle Make', tag: 'make_id', required: true, weight: 6, title: 'Vehicle Make', items: makeSpinnerDataItems, value: make, onChange: (value) { make = value!; context.read<ManageVehiclesBloc>().add(LoadVehicleModelLookups(value.id)); }, ),

Please assist.

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

No branches or pull requests

1 participant
0