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

Commit

Permalink
Update generated code (#48)
Browse files Browse the repository at this point in the history
* Update generated code

fix after vaadin/flow#3678
  • Loading branch information
ZheSun88 authored and Denis committed Mar 14, 2018
1 parent cc930a1 commit d532266
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,12 @@ protected void setDisabled(boolean disabled) {
* @see <a
* href="https://html.spec.whatwg.org/multipage/scripting.html#the-slot-element">Spec
* website about slots</a>
* @return this instance, for method chaining
*/
protected R addToPrefix(Component... components) {
protected void addToPrefix(Component... components) {
for (Component component : components) {
component.getElement().setAttribute("slot", "prefix");
getElement().appendChild(component.getElement());
}
return get();
}

/**
Expand All @@ -202,14 +200,12 @@ protected R addToPrefix(Component... components) {
* @see <a
* href="https://html.spec.whatwg.org/multipage/scripting.html#the-slot-element">Spec
* website about slots</a>
* @return this instance, for method chaining
*/
protected R addToSuffix(Component... components) {
protected void addToSuffix(Component... components) {
for (Component component : components) {
component.getElement().setAttribute("slot", "suffix");
getElement().appendChild(component.getElement());
}
return get();
}

/**
Expand Down

0 comments on commit d532266

Please sign in to comment.