This PR addresses Issue #79 which requests that user input for group names have trimming of whitespace at the beginning and end of the input string.
Changes
Added check to handleInputChange to check if the trimmed string is a match for a duplicate group name. Ensuring that it cannot be saved if it is a duplicate after trimming.
Updated handleSaveName to trim the input, save it to tempName in case another rename action is taken, and saves only the trimmedNewName.
Summary
This PR addresses Issue #79 which requests that user input for group names have trimming of whitespace at the beginning and end of the input string.
Changes
handleInputChange
to check if the trimmed string is a match for a duplicate group name. Ensuring that it cannot be saved if it is a duplicate after trimming.handleSaveName
to trim the input, save it totempName
in case another rename action is taken, and saves only thetrimmedNewName
.