Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Ignoring update for disabled return channel..." warnings when disabling an invisible button #20961

Open
randomuser1231232 opened this issue Feb 6, 2025 · 0 comments

Comments

@randomuser1231232
Copy link

randomuser1231232 commented Feb 6, 2025

Description

When disabling an invisible button and making it visible again the following warning pops up every time:

2025-02-06T10:13:16.302+01:00 WARN 22944 --- [nio-4200-exec-4] c.v.f.s.c.ReturnChannelHandler : Ignoring update for disabled return channel: {"type":"channel","node":4303,"channel":2,"args":[null]}

This does not happen for Span.
This also happens when the visibility of a parent component changes.

Expected outcome

No warnings when changing visibillity and/or changing enabled state of buttons from server side code.

Minimal reproducible example

@Route(value = "")
public class MainRoute extends VerticalLayout {
    public MainRoute () {
        Button b1 = new Button("visi");
        Button b2 = new Button("enab");
        Button b3 = new Button("1");
        b1.addClickListener(buttonClickEvent -> b3.setVisible(!b3.isVisible()));
        b2.addClickListener(buttonClickEvent -> b3.setEnabled(!b3.isEnabled()));
        add(b1, b2, b3);
    }
}

Steps to reproduce

  1. click "visi"-button
  2. click "enab"-button 1,3,5,7,... times
  3. click "visi"-button
  4. warning is logged 1,3,5,7,... times

Environment

Vaadin version(s): 24.6.4

Browsers

No response

@yuriy-fix yuriy-fix transferred this issue from vaadin/flow-components Feb 6, 2025
@mshabarov mshabarov moved this from 🆕 Needs triage to 🔖 Low Priority (P3) in Vaadin Flow bugs & maintenance (Vaadin 10+) Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Low Priority (P3)
Development

No branches or pull requests

2 participants