Skip to content

fix(mobile): ensure status dropdown loads on initial render for Lead and Deal#1791

Open
RahulK2202 wants to merge 1 commit intofrappe:developfrom
RahulK2202:mobile-fix
Open

fix(mobile): ensure status dropdown loads on initial render for Lead and Deal#1791
RahulK2202 wants to merge 1 commit intofrappe:developfrom
RahulK2202:mobile-fix

Conversation

@RahulK2202
Copy link
Copy Markdown

#1790
Fixes an issue where the status dropdown in mobile Lead and Deal views did not open on initial render.

On first load in mobile layout, clicking the status field would not display the list of available statuses. After switching tabs or triggering a re-render, the dropdown would function correctly.

This was caused by evaluating statusOptions() inline in the template, which resulted in the dropdown mounting before options were properly resolved.

Changes

  • Replaced inline statusOptions() call in template with a computed statuses property.
  • Bound <Dropdown> to :options="statuses" instead of calling the function directly.
  • Applied fix to:
    • MobileLead.vue
    • MobileDeal.vue

Result

  • Status dropdown now opens correctly on first interaction.
  • Consistent behavior between mobile and desktop views.
  • No backend changes.

Fixes #1790

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.43%. Comparing base (cbcdc07) to head (3afb720).
⚠️ Report is 47 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1791      +/-   ##
===========================================
- Coverage    53.46%   53.43%   -0.04%     
===========================================
  Files          110      110              
  Lines         5830     5830              
===========================================
- Hits          3117     3115       -2     
- Misses        2713     2715       +2     

see 1 file with indirect coverage changes

🚀 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile: Lead and Deal status dropdown does not open on initial render

1 participant