iachat/app/javascript/dashboard/components
Sivin Varghese 207933ed70
fix: TypeError cannot read properties of undefined (reading '$el') (#9951)
# Pull Request Template

## Description

This PR will fix an error `TypeError cannot read properties of undefined
(reading '$el')` with the keyboard shortcut `Alt+KeyA` for triggering
the file picker.

**Issue**
I couldn't able reproduce this issue. It might be because `$children`
was unavailable at the time of access.

**Solution**
Previously, it relied on `$children`. Now, it uses the more reliable
`querySelector` method to find the target element.

Fixes
https://chatwoot-p3.sentry.io/issues/5708410274/?alert_rule_id=15157525&alert_timestamp=1723552508790&alert_type=email&environment=production&notification_uuid=be5966b2-f17d-4273-8709-98e3322f1f6f&project=4507182691975168&referrer=alert_email

## Type of change

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

## How Has This Been Tested?

**Test cases**
1. Open a conversation
2. And click `Alt+KeyA` to trigger the file picker.
3. See if there is any issue or errors.


## 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-08-14 11:22:51 +05:30
..
Accordion feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
app feat: Rewrite accountMixin to a composable (#9914) 2024-08-12 18:53:30 +05:30
base feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
buttons fix: Snooze conversation not working in Inbox view (#9875) 2024-08-07 18:57:29 +05:30
layout feat: Update the design of the audit logs page (#9901) 2024-08-06 20:58:04 -07:00
specs feat: Use vitest instead of jest, run all the specs anywhere in app/ folder in the CI (#9722) 2024-07-10 08:32:16 -07:00
ui feat: Add issue status in linear issue search item (#9598) 2024-08-08 13:44:08 +05:30
widgets fix: TypeError cannot read properties of undefined (reading '$el') (#9951) 2024-08-14 11:22:51 +05:30
ChannelSelector.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ChatList.vue feat: Rewrite conversations mixin to a helper (#9931) 2024-08-13 15:15:04 +05:30
ChatListHeader.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
Code.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ConversationItem.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
CustomAttribute.vue feat: Rewrite customAttributeMixin to validation helper (#9916) 2024-08-09 18:37:26 +05:30
CustomBrandPolicyWrapper.vue feat: Update the design for integration page (#9825) 2024-07-24 16:35:40 -07:00
CustomSnoozeModal.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
FormSection.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
index.js feat: Custom date picker (#9247) 2024-04-29 14:43:57 +05:30
IntersectionObserver.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
MaskedText.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
Modal.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ModalHeader.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
NetworkNotification.vue feat: Reconnect logic (#9453) 2024-06-03 15:54:19 +05:30
policy.vue chore: Move frontend authorization to permission based system (#9709) 2024-07-03 15:13:16 -07:00
SettingsSection.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
SidemenuIcon.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
Snackbar.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
SnackbarContainer.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30