iachat/app/javascript/dashboard/components
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
..
Accordion feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
app feat: Show a confirmation banner if the email is not verified (#8808) 2024-02-02 12:31:29 -08:00
base feat: Improve the initial screen placeholder (#7708) 2023-08-14 17:50:34 -07:00
buttons feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
layout feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
specs chore: Update specs and warnings in console (#7467) 2023-07-05 18:32:55 -07:00
ui fix: Start calender is not moving properly is last 30 days range (#9322) 2024-04-30 10:09:08 +05:30
widgets fix: Dashboard phone number input country undefined in onSelectCountry (#9473) 2024-05-16 09:16:02 +05:30
ChannelSelector.vue feat: Gray out Microsoft email option when Azure App ID is not configured (#9087) 2024-05-02 15:05:08 -07:00
ChatList.vue feat: Adds support for all snooze option in bulk actions (#9361) 2024-05-09 19:27:31 +05:30
Code.vue feat: one-click codepen for widget configuration (#6865) 2023-04-10 15:44:06 +05:30
ConversationItem.vue feat: Conversation list virtualization (#8540) 2023-12-13 17:28:30 +05:30
CustomAttribute.vue feat: Adds helper text for custom fields in contact sidebars (#9317) 2024-04-29 17:32:44 +05:30
CustomSnoozeModal.vue feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
FormSection.vue feat: Revamp basic profile, avatar and message signature (#9310) 2024-04-29 16:41:55 +05:30
index.js feat: Custom date picker (#9247) 2024-04-29 14:43:57 +05:30
IntersectionObserver.vue feat: Add infinite loader, option for increasing page size (#8525) 2023-12-10 20:09:17 -08:00
MaskedText.vue feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
Modal.vue feat: update create SLA modal design (#9182) 2024-04-08 21:02:01 -07:00
ModalHeader.vue feat: update create SLA modal design (#9182) 2024-04-08 21:02:01 -07:00
NetworkNotification.vue feat: Updates the design of the network connection warning snack bar (#8509) 2023-12-21 14:16:21 -08:00
SettingsSection.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
SidemenuIcon.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
Snackbar.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
SnackbarContainer.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30