Open theKashey opened 4 years ago
123
onBeforeAdd
I am referring to this piece of code: https://github.com/TeamWertarbyte/material-ui-chip-input/blob/master/src/ChipInput.js#L391-L394
should be
handleAddChip (chip) { if (this.props.onBeforeAdd && !this.props.onBeforeAdd(chip)) { this._preventChipCreation = true return chip ? true : false; // -> allow default only if there is no chip to add }
Good suggestion, PR welcome @theKashey :)
Hi guys, is it ok if I open this PR since it's inactive since September 2020? I'm really needing this fix. Thank you.
Scenario
123
onBeforeAdd
to accept only 6 charactersI am referring to this piece of code: https://github.com/TeamWertarbyte/material-ui-chip-input/blob/master/src/ChipInput.js#L391-L394
should be