mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Readonly input element's arrow buttons don't change the value
This commit is contained in:
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
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user