Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<span id="{this.getAriaDescriptionId()}" aria-atomic="true" aria-live="off">
{`Current value is ${value}.`}
{ariaDescription ? ` ${ariaDescription}` : ''}
</span>
);
};
}
NumericInput.propTypes = {
...InputNumber.propTypes,
/** Flag to display styles to show the current value is invalid */
highlightInvalid: PropTypes.bool,
/** Function to set the ref on the input
*
* @param {Node} inputRef The input element */
setRef: PropTypes.func,
/** String for the html label */
label: PropTypes.string,
/** String for the input description */
ariaDescription: PropTypes.string,
/** Optional id string for the input */
id: PropTypes.string.isRequired,
/** Triggered when the user changes the value
*
* @param {Number} value New value */
onChange: PropTypes.func,