-
Notifications
You must be signed in to change notification settings - Fork 7
Calling setText for Button appends the text to an existing caption #43
Comments
We need to find a way to clear that text, as the method is suppose to set the text, not append it. |
The basic issue is that
|
The fix of this simple issue which is definitely confusing may introduce terrible consequences. At the moment it's just a confusion. Let's imagine I have :
And I have both divs injected via
Now we should remove everything inside the first Also the issue with I would say the main confusion here is Anyway. What I'm definitely sure: let's don't fix it SOMEHOW. We may introduce much more serious issues than just a confusion as it's for now. We need to go through all usecases and find solution for each of them. This issue requires a serious discussion instead of quick fix proposition. |
There might be some small differences such as the fact that |
@denis-anisimov I agree. The source of the problem as I see it is that the server-side Button (or any Vaadin10
I believe this to be a major inconsistency. Not only this kills browserless testing for Polymer Templates, it also makes the server abstraction leak in various ways. The user will have to learn that Buttons and components nested inside of the Polymer Template are inferior than server-side constructed Buttons and behave differently. |
This issue was also reported in vaadin/flow#3699. |
Based on the amount of feedback on this and on what happens when components added to a Id-mapped layout go to unexpected location, we need to resolve this before RC and release a Beta version with the fix. |
Will be fixed through vaadin/flow#3713 |
As I understand this will be fixed automatically once So may this is only about IT test. |
Having a template with
<vaadin-button>Click</vaadin-button>
And calling later in Java
myButton.setText("Me!")
Expected:
Button has text "Me!"
Actual:
Button has text "Click Me!"
The text was updated successfully, but these errors were encountered: