mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
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: c31f9815b4
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(
|
auto up_callback_function = JS::NativeFunction::create(
|
||||||
realm(), [this](JS::VM&) {
|
realm(), [this](JS::VM&) {
|
||||||
MUST(step_up());
|
if (m_is_mutable) {
|
||||||
user_interaction_did_change_input_value();
|
MUST(step_up());
|
||||||
|
user_interaction_did_change_input_value();
|
||||||
|
}
|
||||||
return JS::js_undefined();
|
return JS::js_undefined();
|
||||||
},
|
},
|
||||||
0, "", &realm());
|
0, "", &realm());
|
||||||
|
@ -896,8 +898,10 @@ void HTMLInputElement::create_text_input_shadow_tree()
|
||||||
|
|
||||||
auto down_callback_function = JS::NativeFunction::create(
|
auto down_callback_function = JS::NativeFunction::create(
|
||||||
realm(), [this](JS::VM&) {
|
realm(), [this](JS::VM&) {
|
||||||
MUST(step_down());
|
if (m_is_mutable) {
|
||||||
user_interaction_did_change_input_value();
|
MUST(step_down());
|
||||||
|
user_interaction_did_change_input_value();
|
||||||
|
}
|
||||||
return JS::js_undefined();
|
return JS::js_undefined();
|
||||||
},
|
},
|
||||||
0, "", &realm());
|
0, "", &realm());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue