iachat/app/javascript/dashboard/components/widgets
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
..
chart feat: Update reports UI to make it better (#7544) 2023-07-19 12:12:15 -07:00
conversation fix: Update the voice note format to MP3 to fix the delivery issues (#9448) 2024-05-15 17:53:45 -07:00
DashboardApp fix: Update duplicate ids for dashboard app frame (#8077) 2023-10-10 16:46:32 +05:30
FilterInput feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
forms fix: Dashboard phone number input country undefined in onSelectCountry (#9473) 2024-05-16 09:16:02 +05:30
mentions refactor: handling keyboard shortcuts (#9242) 2024-04-26 15:41:02 +05:30
modal feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
stories feat: Add component for grouped thumbnails (#5796) 2022-11-03 22:38:45 -07:00
WootWriter fix: Update the voice note format to MP3 to fix the delivery issues (#9448) 2024-05-15 17:53:45 -07:00
AIAssistanceButton.vue refactor: handling keyboard shortcuts (#9242) 2024-04-26 15:41:02 +05:30
AIAssistanceCTAButton.vue feat: Add CTAs for AI features (#7538) 2023-08-16 08:39:41 +05:30
AIAssistanceModal.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
AICTAModal.vue feat: Add CTAs for AI features (#7538) 2023-08-16 08:39:41 +05:30
AILoader.vue feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
AttachmentsPreview.vue fix: Audio attachment issues (#9260) 2024-04-25 13:42:46 +05:30
AutomationActionInput.vue feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
AutomationActionTeamMessageInput.vue chore: Update self-closing tag eslint config (#4826) 2022-06-10 19:29:52 +05:30
AutomationFileInput.vue feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
Avatar.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
BackButton.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
ChannelItem.vue feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
ChatTypeTabs.vue refactor: handling keyboard shortcuts (#9242) 2024-04-26 15:41:02 +05:30
ColorPicker.vue feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
EmptyState.vue fix: Update help center styles, fix routing issues (#9061) 2024-03-04 09:57:14 -08:00
FeatureToggle.vue feat: Add the ability for the agents to execute a macro (#5698) 2022-10-24 20:33:59 -07:00
InboxDropdownItem.stories.js feat: Adds new inbox selector with more info for new message modal [cw-1358] (#6823) 2023-04-19 23:02:50 +05:30
InboxDropdownItem.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
InboxName.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
LabelSelector.stories.js feat: Ability to add label for contact page (#2350) 2021-06-14 10:36:00 +05:30
LabelSelector.vue feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
LoadingState.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
SettingIntroBanner.stories.js chore: Cleanup page-top-bar style conflicts (#2407) 2021-06-10 09:35:15 +05:30
SettingIntroBanner.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
ShowMore.vue feat: Allow agent-bots to be created from the UI (#4153) 2022-11-17 22:15:58 -08:00
TableFooter.vue fix: Remove background color from table footer (#9213) 2024-04-09 15:29:05 +10:00
TableFooterPagination.vue feat: SLA report filter (#9218) 2024-04-12 11:03:18 +05:30
TableFooterResults.vue feat: Table footer design updates (#9194) 2024-04-09 10:50:41 +10:00
TableHeaderCell.vue feat: SLA reports view (#9189) 2024-04-09 10:14:36 +10:00
Thumbnail.spec.js feat: Improve image loading for thumbnails (#5823) 2022-11-08 21:05:13 -08:00
Thumbnail.stories.js feat: Support square variants of thumbnail and avatar components (#5003) 2022-07-09 14:03:55 +05:30
Thumbnail.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
ThumbnailGroup.vue feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
UserAvatarWithName.vue fix: Update the order of display of the CSAT ratings (#7805) 2023-08-27 07:39:06 +05:30
VideoCallButton.vue feat: Add video call option with Dyte in the dashboard (#6207) 2023-01-09 11:49:27 -08:00