X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fframework%2Fwidgets%2Fform_controls%2FtextInput.jsx;h=000dcf7c1d7116026bce75ac7ff3dff522f53f2d;hp=03dfa9c8ab025e2bc24c3e7a5f7ef69c4b0e19d8;hb=03156e335275de1dafbc2a816e98006afdf249bf;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/framework/widgets/form_controls/textInput.jsx b/skyquake/framework/widgets/form_controls/textInput.jsx index 03dfa9c8a..000dcf7c1 100644 --- a/skyquake/framework/widgets/form_controls/textInput.jsx +++ b/skyquake/framework/widgets/form_controls/textInput.jsx @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,58 +18,12 @@ import './formControls.scss'; import React, {Component} from 'react'; - -export default class TextInput extends Component { - render() { - let {label, onChange, value, defaultValue, ...props} = this.props; - let inputProperties = { - value: value, - onChange: onChange - } - let isRequired; - let inputType; - if(this.props.required) { - isRequired = * - } - if (defaultValue) { - inputProperties.defaultValue = defaultValue; - } - if (props.pattern) { - inputProperties.pattern = props.pattern; - } - if (value == undefined) { - value = defaultValue; - } - switch(props.type) { - case 'textarea': - inputType =