Merge pull request #96609 from detomon/prevent-changing-readonly-property

Prevent editing value on focus when `EditorSpinSlider` is read-only
This commit is contained in:
Rémi Verschelde 2024-09-05 17:44:48 +02:00
commit 88ed6af1e6
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 0 deletions

View File

@ -665,6 +665,10 @@ bool EditorSpinSlider::is_grabbing() const {
}
void EditorSpinSlider::_focus_entered() {
if (is_read_only()) {
return;
}
_ensure_input_popup();
value_input->set_text(get_text_value());
value_input_popup->set_size(get_size());