Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Composite UI components may not handle UI events #695

Closed
glebfox opened this issue Oct 12, 2021 · 0 comments
Closed

Composite UI components may not handle UI events #695

glebfox opened this issue Oct 12, 2021 · 0 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@glebfox
Copy link
Contributor

glebfox commented Oct 12, 2021

Relates to #400

CompositeComponent handles UI events only if composition is set using the setComposition() method. If we define root directly, events are not handled.

Steps to reproduce

Take the test CompositeComponent from the linked issue and replace

protected void onCreate(CreateEvent event) {
    CssLayout layout = uiComponents.create(CssLayout.NAME);
    setComposition(layout);
}

with

protected void onCreate(CreateEvent event) {
    root = uiComponents.create(CssLayout.NAME);
}

AR:

UIRefreshEventwon't be handled

@glebfox glebfox added this to the 1.1.0 milestone Oct 12, 2021
@glebfox glebfox self-assigned this Oct 12, 2021
@glebfox glebfox added the type: bug Something isn't working label Oct 18, 2021
@lovtsovaik lovtsovaik assigned imorenov94 and unassigned lovtsovaik Oct 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants