LibWeb: Readonly input element's arrow buttons don't change the value
This commit is contained in:
parent
ebaba7fb7b
commit
c31f9815b4
Notes:
github-actions[bot]
2024-10-02 20:05:12 +00:00
Author: https://github.com/Arhcout Commit: https://github.com/LadybirdBrowser/ladybird/commit/c31f9815b46 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1602
1 changed files with 8 additions and 4 deletions
|
@ -876,8 +876,10 @@ void HTMLInputElement::create_text_input_shadow_tree()
|
|||
|
||||
auto up_callback_function = JS::NativeFunction::create(
|
||||
realm(), [this](JS::VM&) {
|
||||
MUST(step_up());
|
||||
user_interaction_did_change_input_value();
|
||||
if (m_is_mutable) {
|
||||
MUST(step_up());
|
||||
user_interaction_did_change_input_value();
|
||||
}
|
||||
return JS::js_undefined();
|
||||
},
|
||||
0, "", &realm());
|
||||
|
@ -896,8 +898,10 @@ void HTMLInputElement::create_text_input_shadow_tree()
|
|||
|
||||
auto down_callback_function = JS::NativeFunction::create(
|
||||
realm(), [this](JS::VM&) {
|
||||
MUST(step_down());
|
||||
user_interaction_did_change_input_value();
|
||||
if (m_is_mutable) {
|
||||
MUST(step_down());
|
||||
user_interaction_did_change_input_value();
|
||||
}
|
||||
return JS::js_undefined();
|
||||
},
|
||||
0, "", &realm());
|
||||
|
|
Loading…
Add table
Reference in a new issue