Added ability to change 'enabled' view property

Summary: In the accessibility inspector plugin, the "Enabled" view property was marked at mutable, but would not actually change the clicked.  This is because no case for changing this property was implemented.  This fixes the issue and allows the property to be mutable.

Reviewed By: jknoxville

Differential Revision: D12944810

fbshipit-source-id: 846547ba1baa481eca3fe1cd949cf252904677bc
This commit is contained in:
Brett Lavalla
2018-11-08 17:54:20 -08:00
committed by Facebook Github Bot
parent 5ef39cbcad
commit de016b8493

View File

@@ -401,6 +401,9 @@ public class ViewDescriptor extends NodeDescriptor<View> {
case "selected":
node.setSelected(value.asBoolean());
break;
case "enabled":
node.setEnabled(value.asBoolean());
break;
}
invalidateAX(node);
}