Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b38f24a

Browse files
committed
Merge pull request #87 from collinjackson/issue_34
Fix issue #34 Clicking on "Autorefresh" menu item does not click checkbox R=abarth
2 parents a19fdb4 + 609595a commit b38f24a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sky/sdk/example/stocks/lib/stock_menu.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ class StockMenu extends Component {
3939
items: [
4040
new PopupMenuItem(child: new Text('Add stock')),
4141
new PopupMenuItem(child: new Text('Remove stock')),
42-
new PopupMenuItem(child: new Flex([new Flexible(child: new Text('Autorefresh')), checkbox])),
42+
new PopupMenuItem(
43+
onPressed: () => onAutorefreshChanged(!autorefresh),
44+
child: new Flex([new Flexible(child: new Text('Autorefresh')), checkbox])
45+
),
4346
],
4447
level: 4,
4548
showing: showing,

0 commit comments

Comments
 (0)