Skip to content

Commit

Permalink
fix: updated textbox width and changed field value for custom cell
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvanshus-crest committed May 11, 2021
1 parent f25e895 commit 713954e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui/src/main/webapp/components/MultiInputComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { filterResponse } from '../util/util';
import { getFormattedMessage } from '../util/messageUtil';

const MultiSelectWrapper = styled(Multiselect)`
width: 300px !important;
width: 320px !important;
`;

function MultiInputComponent(props) {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/main/webapp/components/RadioComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import RadioBar from '@splunk/react-ui/RadioBar';
import styled from 'styled-components';

const RadioBarWrapper = styled(RadioBar)`
width: 300px;
width: 320px;
`;

class RadioComponent extends Component {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/main/webapp/components/SingleInputComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { axiosCallWrapper } from '../util/axiosCallWrapper';
import { filterResponse } from '../util/util';

const SelectWrapper = styled(Select)`
width: 300px !important;
width: 320px !important;
`;

function SingleInputComponent(props) {
Expand Down
6 changes: 3 additions & 3 deletions ui/src/main/webapp/components/TextComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Text from '@splunk/react-ui/Text';
import styled from 'styled-components';

const TextWrapper = styled(Text)`
width: 300px !important;
width: 320px !important;
`;

class TextComponent extends Component {
Expand All @@ -20,7 +20,7 @@ class TextComponent extends Component {
placeholder={this.props?.controlOptions?.placeholder}
className={this.props.field}
disabled={this.props.disabled}
value={this.props.value === null ? '' : this.props.value}
value={this.props.value === null ? '' : this.props.value.toString()}
onChange={this.handleChange}
type={this.props.encrypted ? 'password' : 'text'}
/>
Expand All @@ -29,7 +29,7 @@ class TextComponent extends Component {
}

TextComponent.propTypes = {
value: PropTypes.string,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
handleChange: PropTypes.func.isRequired,
field: PropTypes.string,
error: PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion ui/src/main/webapp/components/table/CustomTableRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function CustomTableRow(props) {
const getCustomCell = (customRow, header) => {
return React.createElement(CustomTableControl, {
serviceName: row.serviceName,
field: row.name,
field: header.field,
row: customRow,
fileName: header.customCell.src,
});
Expand Down

0 comments on commit 713954e

Please sign in to comment.