Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PM-1315 Fix issues on Copilot request form#1141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
himaniraghav3 wants to merge1 commit intodev
base:dev
Choose a base branch
Loading
fromPM-1315

Conversation

himaniraghav3
Copy link
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-1315

What's in this PR?

Fixes border color on hover for Skills input
Allows backspace to clear the project input
Fixes space in text forHi, user!

@@ -105,11 +106,12 @@ const InputSelectReact: FC<InputSelectReactProps> = props => {

// throw the proper event type to the form handler (needs name & form element on target)
function handleSelect(option: unknown): void {
const selectedOption = option as InputSelectOption | null

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Consider adding a type guard or checking ifoption is of typeInputSelectOption before casting. This will ensure type safety and prevent potential runtime errors ifoption is not of the expected type.

props.onChange({
target: {
form: findParentFrom(wrapRef.current as HTMLDivElement),
name: props.name,
value:(option as InputSelectOption).value,
value:selectedOption?.value || '',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The use of optional chaining (?.) is a good approach to handle potentialnull orundefined values. However, ensure thatselectedOption is always of typeInputSelectOption | null to avoid unexpected behavior.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

@kkartunovkkartunovAwaiting requested review from kkartunov

@hentrymartinhentrymartinAwaiting requested review from hentrymartin

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@himaniraghav3

[8]ページ先頭

©2009-2025 Movatter.jp