iachat/app/javascript
Sivin Varghese 5657473573
fix: Dashboard phone number input country undefined in onSelectCountry (#9473)
# Pull Request Template

## Description

This PR will fix this sentry
[issue](https://chatwoot-p3.sentry.io/issues/5291039795/)

**Issue**
The root cause of this issue is the usage of
`keyboardEventListenerMixins`. The key events are always active when the
edit conversation modal is active, even if the country dropdown is not
visible. So, if we press the enter key, this error will be thrown into
the console.

**Solution**
Remove the use of `keyboardEventListenerMixins` and handle it directly
in the Vue native key events. Also, always check if the dropdown is
active.

**Other changes**
1. Remove the `mouseup` event lister and use the click away directive.
2. Use inline Tailwind css


Fixes
https://linear.app/chatwoot/issue/CW-3282/phonenumberinput-country-undefined-in-onselectcountry

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Steps**
1. Open a conversation.
3. And click the edit contact button
4. And click the enter key
5. Now you can see the error in the console


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2024-05-16 09:16:02 +05:30
..
dashboard fix: Dashboard phone number input country undefined in onSelectCountry (#9473) 2024-05-16 09:16:02 +05:30
packs fix: widget does not load when navigating on pages with view transition [CW-3249] (#9443) 2024-05-15 10:45:03 +05:30
portal feat: add missing clickaway directives (#9451) 2024-05-10 11:15:36 +05:30
sdk fix: widget does not load when navigating on pages with view transition [CW-3249] (#9443) 2024-05-15 10:45:03 +05:30
shared fix: Update the voice note format to MP3 to fix the delivery issues (#9448) 2024-05-15 17:53:45 -07:00
superadmin_pages refactor: handling keyboard shortcuts (#9242) 2024-04-26 15:41:02 +05:30
survey chore(i18n): Update the latest translations (#9340) 2024-05-02 08:18:17 -07:00
v3 feat: Adds support for all snooze option in bulk actions (#9361) 2024-05-09 19:27:31 +05:30
widget fix: Widget phone number input country undefined in onSelectCountry (#9457) 2024-05-15 09:48:55 +05:30