Skip to content

Bug: Search bar input locked; new keystrokes instantly disappear on typing or backspace#8909

Open
Avani176 wants to merge 2 commits into
SandeepVashishtha:masterfrom
Avani176:fix/search-contrast-and-scroll
Open

Bug: Search bar input locked; new keystrokes instantly disappear on typing or backspace#8909
Avani176 wants to merge 2 commits into
SandeepVashishtha:masterfrom
Avani176:fix/search-contrast-and-scroll

Conversation

@Avani176

Copy link
Copy Markdown
Contributor

...croll hook

Description

This PR resolves multiple UI and system stability issues related to the search and landing experience:

  1. Search Input Contrast & Usability: Fixed an issue where text entered into the modern search input field was invisible due to poor color contrast against the background theme. Added explicit text-black dark:text-white support and included spellCheck="false" to prevent browser native spelling underscores from clipping the layout.
  2. System Crash Resolution: Resolved a critical ReferenceError: scrollYProgress is not defined runtime crash in the Hero component by properly declaring and invoking the useScroll hook from framer-motion.
  3. Search Filtering Updates: Adjusted state synchronization inside the search filter utility to prevent input locks.

Fixes #8548

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots / Video (if applicable)

Feel free to drag and drop your frontend screenshots here if you want to show the working UI!

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have verified responsiveness and visual alignment on desktop and mobile viewports

@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

@Avani176 is attempting to deploy a commit to the sandeepvashishtha's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the level:advanced 55pts label Jun 14, 2026
@github-actions github-actions Bot added gssoc:approved gssoc approved PR quality:exceptional 1.5x bug Something isn't working type:accessibility Accessibility improvements type:bug type:feature labels Jun 14, 2026
codescene-access[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the size/L Large pull request label Jun 14, 2026

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Health Improved (2 files improve in Code Health)

Gates Failed
Enforce advisory code health rules (1 file with Complex Method)

Our agent can fix these. Install it.

Gates Passed
3 Quality Gates Passed

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
ModernSearchInput.js 1 advisory rule 9.49 → 9.41 Suppress

See analysis details in CodeScene

View Improvements
File Code Health Impact Categories Improved
Hero.js 8.40 → 10.00 Complex Method
SearchFilter.js 8.13 → 9.50 Complex Method

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Comment on lines +67 to +82
<<<<<<< HEAD
ref={searchInputRef}
type="text"
placeholder={tags && tags.length > 0 ? "" : placeholder}
// UPDATED CLASSNAME BELOW: Added text-black and dark:text-white explicitly to the input field
className="flex-1 bg-transparent border-none outline-none text-black dark:text-white min-w-[120px] placeholder-gray-400 dark:placeholder-gray-500"
// UPDATED PROPERTY BELOW: Added spellCheck="false" to prevent the full-height red spellcheck lines
spellCheck="false"
value={value}
onChange={onChange}
onFocus={handleFocus}
autoFocus={autoFocus}
onBlur={handleBlur}
onKeyDown={onKeyDown}
/>
=======

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

❌ Getting worse: Complex Method
ModernSearchInput increases in cyclomatic complexity from 12 to 14, threshold = 9

Suppress

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

Labels

bug Something isn't working gssoc:approved gssoc approved PR level:advanced 55pts quality:exceptional 1.5x size/L Large pull request type:accessibility Accessibility improvements type:bug type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Search bar input locked; new keystrokes instantly disappear on typing or backspace

1 participant