adding support for min/max-width/height
Summary: Adding controls for min/max height/width to the playground Reviewed By: emilsjolander Differential Revision: D7988400 fbshipit-source-id: bae487e2504906788552d6c1a29ed74c39cb5ac0
This commit is contained in:
committed by
Facebook Github Bot
parent
3564ccf6e4
commit
5dbe3c128b
@@ -33,7 +33,7 @@ export default (props: Props<*>) => {
|
||||
type="text"
|
||||
{...props}
|
||||
onChange={e => props.onChange(props.property, e.target.value)}
|
||||
placeholder="undefined"
|
||||
placeholder={props.placeholder || 'undefined'}
|
||||
onFocus={e => e.target.select()}
|
||||
value={Number.isNaN(props.value) ? '' : props.value}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user