Sharif4
(Sharif Naddaf)
October 19, 2022, 8:28am
1
Hi, thank you for making it usable with @PreserveOnRefresh enabled. I really like the API.
One thing I've noticed when we plugin this addon to our project (Vaadin 14.8.*), we get lot of warnings like this:
WARN com.vaadin.flow.server.communication.ReturnChannelHandler - Ignoring update for disabled return channel: {"type":"channel","node":6,"channel":0,"args":[1]
}
I know the tooltip won't work on disabled Components, I don't mind that (It will work after the component gets enabled), but the log files are full of this, is it possible to get rid of this message?

Gerrit14
(Gerrit Sedlaczek)
January 22, 2023, 2:26pm
2
Hello Sharif,
I currently (and for the forseeable future) dont have enough time to investigate the issue.
A workaround might be to overwrite the components like this:
// untested code from the top my head :)
class YourComp extends Component implements HasEnabled, HasTooltip {
@Override public void setEnabled(boolean enabled) {
if(enabled) {
super.setEnabled(true);
setTooltip("my value");
} else {
removeTooltip();
super.setEnabled(false);
}
}
}
If you want to you are welcome to take a shot at it and provide a merge request.
Best Regards
Gerrit