Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get tabIds () {
// cache tab ids for better performance and to prevent errors with animations
const ids = this._tabIds || []
let diff = ids.length - this.tabs.length
while (diff++ < 0) {
ids.push(uid())
}
this._tabIds = ids
return ids
}
constructor (props) {
super(props)
this._popover = null
this._trigger = null
this._menu = null
this._labelId = `MenuPopover__${uid()}`
}
constructor (props) {
super()
if (props.value === undefined) {
this.state = {
value: props.defaultValue
}
}
this.defaultId = `RangeInput_${uid()}`
}
constructor (props) {
super(props)
this.state = {
focused: false,
hovered: false
}
if (props.checked === undefined) {
this.state.checked = !!props.defaultChecked
}
this._defaultId = `Checkbox__${uid()}`
}
constructor (props) {
super()
if (props.value === undefined) {
this.state = {
value: props.defaultValue
}
}
this._messagesId = `RadioInputGroup__messages-${uid()}`
}
constructor (props) {
super()
this._messagesId = props.messagesId || `FormFieldLayout__messages-${uid()}`
if (props.inline && props.layout === 'inline') {
warning(
!!props.width,
`[FormFieldLayout] The inline prop is true, and the layout is set to inline.
This will cause a layout issue in Internet Explorer 11 unless you also add a
value for the width prop.`
)
}
}
constructor (props) {
super()
if (props.value === undefined) {
this.state = {
value: props.defaultValue
}
}
this._messagesId = `CheckboxGroup__messages-${uid()}`
}
constructor () {
super()
this._defaultId = `TextArea__${uid()}`
}
constructor (props) {
super(props)
this.state = {}
if (props.checked === undefined) {
this.state.checked = false
}
this._defaultId = `RadioInput__${uid()}`
}