From 609595ab62e05d7a8b9bd6c921420867f97fb2bc Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Fri, 17 Jul 2015 09:48:49 -0700 Subject: [PATCH] Fix issue #34 Clicking on "Autorefresh" menu item does not click checkbox --- sky/sdk/example/stocks/lib/stock_menu.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sky/sdk/example/stocks/lib/stock_menu.dart b/sky/sdk/example/stocks/lib/stock_menu.dart index 9cb7a09363117..ef34d40fd3a1b 100644 --- a/sky/sdk/example/stocks/lib/stock_menu.dart +++ b/sky/sdk/example/stocks/lib/stock_menu.dart @@ -39,7 +39,10 @@ class StockMenu extends Component { items: [ new PopupMenuItem(child: new Text('Add stock')), new PopupMenuItem(child: new Text('Remove stock')), - new PopupMenuItem(child: new Flex([new Flexible(child: new Text('Autorefresh')), checkbox])), + new PopupMenuItem( + onPressed: () => onAutorefreshChanged(!autorefresh), + child: new Flex([new Flexible(child: new Text('Autorefresh')), checkbox]) + ), ], level: 4, showing: showing,