Skip to content

Commit 9fd37f3

Browse files
paodbjavier-godoy
authored andcommitted
fix(demo): use @ParentLayout instead of just @route
1 parent f8d1f68 commit 9fd37f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/flowingcode/vaadin/addons/chipfield/ChipfieldDemoView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
import com.flowingcode.vaadin.addons.GithubLink;
2424
import com.flowingcode.vaadin.addons.demo.TabbedDemo;
2525
import com.vaadin.flow.component.dependency.StyleSheet;
26+
import com.vaadin.flow.router.ParentLayout;
2627
import com.vaadin.flow.router.Route;
2728

2829
@SuppressWarnings("serial")
2930
@StyleSheet("context://frontend/styles/demo-styles.css")
30-
@Route(value = "chipfield", layout = DemoLayout.class)
31+
@ParentLayout(DemoLayout.class)
32+
@Route("chipfield")
3133
@GithubLink("https://github.com/FlowingCode/ChipFieldAddon")
3234
public class ChipfieldDemoView extends TabbedDemo {
3335

0 commit comments

Comments
 (0)