Open heyqbnk opened 2 years ago
Describe the bug In case, main button was set inactive via web_app_setup_main_button method, event main_button_pressed is still being sent. It is worth mentioning, that visually, button becomes inactive, but its functional part works incorrectly.
web_app_setup_main_button
main_button_pressed
To Reproduce Steps to reproduce the behavior:
bridge.postEvent('web_app_setup_main_button', { is_visible: true, is_active: false, is_progress_visible: false, text: 'TEXT', color: '#ff0000', text_color: '#00ff00', });
[...] [Bridge] [processEvent] main_button_pressed undefined
Expected behavior Event main_button_pressed is not being sent in case, button is inactive.
Reported this issue in https://t.me/BugReports as long as could not find any other compatible source.
Describe the bug In case, main button was set inactive via
web_app_setup_main_button
method, eventmain_button_pressed
is still being sent. It is worth mentioning, that visually, button becomes inactive, but its functional part works incorrectly.To Reproduce Steps to reproduce the behavior:
[...] [Bridge] [processEvent] main_button_pressed undefined
. It means, application receivedmain_button_pressed
event.Expected behavior Event
main_button_pressed
is not being sent in case, button is inactive.