Validation issue with SfNumericUpDown

In my ViewModel I’m using CommunityToolkit.Mvvm.

I have the following property:

[ObservableProperty] private decimal _units; public void OnUnitsChanging(decimal oldValue, decimal newValue)

I have a validation that, if it fails, the newValue must not be assigned to _units.

In my view I’m using Syncfusion.Maui.Toolkit.NumericUpDown to set the unit.
When the validation does not fail, OnUnitsChanging works correctly.
However, when the validation fails, OnUnitsChanging enters a loop.

What am I doing wrong?


1 Reply

VM Vidyalakshmi Mani Syncfusion Team October 8, 2025 11:40 AM UTC

Hi Hard Shop Informática,


Thank you for contacting us.


We tried to reproduce the reported behavior with the SfNumericUpDown control, but it worked as expected on our side. For your convenience, we’ve attached the sample we used for testing.


Please modify our sample to reproduce the issue and send it back to us, or share your own sample where the issue occurs. This will help us analyze the scenario more effectively and provide the right solution.


Regards,

Vidyalakshmi M.



Attachment: MauiApp1_e0a8ddd5.zip

Loader.
Up arrow icon