Skip to content

Conversation

lisalupi
Copy link
Collaborator

@lisalupi lisalupi commented Sep 2, 2025

Summary

Type

  • Bug

Summarise concisely:

What is expected?

SelectInput:

  • click outside should work in every context
  • fix placeholder alignment when small

Before:
Capture d’écran 2025-09-02 à 11 13 03

After:
Capture d’écran 2025-09-02 à 11 12 49

@lisalupi lisalupi requested review from vincentaudebert and a team September 2, 2025 09:13
@lisalupi lisalupi self-assigned this Sep 2, 2025
@lisalupi lisalupi requested review from DorianMaliszewski and removed request for a team September 2, 2025 09:13
@lisalupi lisalupi requested review from johnrazeur, a team and matthprost as code owners September 2, 2025 09:13
@lisalupi lisalupi added the bug Something isn't working label Sep 2, 2025
Copy link

changeset-bot bot commented Sep 2, 2025

🦋 Changeset detected

Latest commit: 8afb4da

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@ultraviolet/ui Patch
@ultraviolet/form Patch
@ultraviolet/nextjs Patch
@ultraviolet/plus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Sep 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.22%. Comparing base (bdfd63a) to head (8afb4da).
⚠️ Report is 6 commits behind head on beta.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             beta    #5491      +/-   ##
==========================================
+ Coverage   92.19%   92.22%   +0.02%     
==========================================
  Files         274      283       +9     
  Lines        7807     7752      -55     
  Branches     3264     3212      -52     
==========================================
- Hits         7198     7149      -49     
+ Misses        609      603       -6     
Files with missing lines Coverage Δ
...ackages/ui/src/components/SelectInput/Dropdown.tsx 92.68% <100.00%> (+0.30%) ⬆️
...ckages/ui/src/components/SelectInput/SelectBar.tsx 91.50% <ø> (ø)

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 660d30e...8afb4da. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +726 to +748
const handleClickOutside = useCallback(
(event: MouseEvent) => {
if (
event.target instanceof Node &&
ref.current &&
!ref.current.contains(event.target) &&
refSelect.current &&
!refSelect.current.contains(event.target)
) {
setIsDropdownVisible(false)
}
},
[setIsDropdownVisible, refSelect],
)

useEffect(() => {
document.addEventListener('mouseup', handleClickOutside)

return () => {
document.removeEventListener('mouseup', handleClickOutside)
}
}, [handleClickOutside])

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is already handled into the popup component it makes a duplicate. Maybe the issue is related to popup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants