slint icon indicating copy to clipboard operation
slint copied to clipboard

SpinBox, edited event does not work

Open csavels opened this issue 1 year ago • 1 comments

Hello, for information:

On Mac, Slint 1.4,

The "edited" event does not work with the SpinBox, the same code with a "TextEdit" works correctly.

Does not work


Rectangle { 
	HorizontalLayout {

                for number[i] in numbers: SpinBox {

                    edited(value) => {
                        debug("Edited...");
                        debug(value);
                    }

                    
                }
            }
        }

Works

Rectangle { 
	HorizontalLayout {

                for number[i] in numbers: TextEdit
 {

                    edited(value) => {
                        debug("Edited...");
                        debug(value);
                    }

                    
                }
            }
        }

csavels avatar Feb 07 '24 14:02 csavels

Thank you for the report. I could reproduce it for the cupertino and material SpinBox. The fluent and cosmic SpinBox worked. There is a PR that should fixes the issue.

FloVanGH avatar Feb 07 '24 16:02 FloVanGH