src/components/Picklist/index.js
File index.js
has 368 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable react/sort-comp */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import withReduxForm from '../../libs/hocs/withReduxForm';
import RenderIf from '../RenderIf';
Function render
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
label: pickListLabel,
labelAlignment,
hideLabel,
Function constructor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
this.inputId = uniqueId('picklist-input');
this.errorMessageId = uniqueId('error-message');
this.listboxId = uniqueId('listbox');