Fixing playground editing

Summary: editing numerical values didn't work. this fixes it and cleans up the API of the playground

Reviewed By: emilsjolander

Differential Revision: D6976128

fbshipit-source-id: 9b1ace9d93ba8e597bdfb4842ed6adcaf8b77fd9
This commit is contained in:
Daniel Büchele
2018-02-13 06:13:29 -08:00
committed by Facebook Github Bot
parent 9c877a621e
commit 699b1f5012
5 changed files with 64 additions and 53 deletions

View File

@@ -34,7 +34,7 @@ export default ({pathContext}) => (
<EditValue
property={prop}
value={layout[prop]}
onChange={e => onChange(prop, e)}
onChange={onChange}
/>
</div>
))}