Ghost/ghost/admin/app/components
Kevin Ansfield 3d6fae3ea7
Fixed intermittent click issues with internal links dropdown (#20101)
closes https://linear.app/tryghost/issue/MOM-60

- when the dropdown opens near the end of the document, clicking the links sometimes did nothing and showed an error in the console
- we have a mousedown event handler on an element that surrounds the main editing element that re-focuses the editor when clicked in order to make the "focus editor" click target larger and more natural-feeling but it was inadvertently re-focusing when the mousedown event fired for an element in the dropdown list when the list was positioned outside of the main editor element. This lead to timing issues with the bookmark node being removed on blur because it was empty followed by an error from the node's component's async event handlers which were trying to set values on the now-removed node
- by switching from `event.target.closest()` to looping over `event.composedPath()` when checking to see if we should skip re-focusing we're more resilient to DOM manipulations occurring between event triggers and function calls because we'll always be given the list of elements that existed at the time the event fired
2024-04-29 17:58:33 +01:00
..
admin-x Added ActivityPub playground (#20081) 2024-04-25 16:44:29 +08:00
collections
dashboard
editor
gh-input-with-select
gh-nav-menu Added ActivityPub playground (#20081) 2024-04-25 16:44:29 +08:00
gh-post-settings-menu
gh-power-select
gh-token-input Improved long label handling (#20029) 2024-04-17 05:02:21 +00:00
icons
inputs
member
member-attribution
members
members-activity
modal-import-members
modals 🐛 Fixed admin error when deleting an unsaved or imported post (#20053) 2024-04-18 10:02:02 -07:00
multi-list
offers
posts
posts-list
tabs
tags
tiers
aspect-ratio-box.hbs
aspect-ratio-box.js
epm-modal-container.hbs
epm-modal-container.js
gh-alert.hbs
gh-alert.js
gh-alerts.hbs
gh-alerts.js
gh-app.hbs
gh-basic-dropdown.hbs
gh-basic-dropdown.js
gh-billing-iframe.hbs
gh-billing-iframe.js
gh-billing-modal.hbs
gh-billing-modal.js
gh-billing-update-button.hbs
gh-billing-update-button.js
gh-blog-url.hbs
gh-blog-url.js
gh-browser-preview.hbs
gh-browser-preview.js
gh-canvas-header.hbs
gh-canvas-header.js
gh-cm-editor.hbs
gh-cm-editor.js
gh-content-cover.js
gh-context-menu.hbs
gh-context-menu.js
gh-custom-view-title.hbs
gh-custom-view-title.js
gh-date-picker.hbs
gh-date-picker.js
gh-date-time-picker.hbs
gh-date-time-picker.js
gh-dropdown-button.js
gh-dropdown.js
gh-editor-feature-image.hbs
gh-editor-feature-image.js
gh-editor-post-status.hbs
gh-editor-post-status.js
gh-editor.hbs
gh-editor.js
gh-email-preview-link.hbs
gh-email-preview-link.js
gh-error-message.hbs
gh-error-message.js
gh-explore-iframe.hbs
gh-explore-iframe.js
gh-explore-modal.hbs
gh-explore-modal.js
gh-facebook-url-input.hbs
gh-facebook-url-input.js
gh-file-input.hbs
gh-file-input.js
gh-form-group.hbs
gh-fullscreen-modal.hbs
gh-fullscreen-modal.js
gh-html-iframe.hbs
gh-html-iframe.js
gh-image-uploader-with-preview.hbs
gh-image-uploader.hbs
gh-image-uploader.js
gh-infinity-loader.hbs
gh-infinity-loader.js
gh-koenig-editor-lexical.hbs
gh-koenig-editor-lexical.js Fixed intermittent click issues with internal links dropdown (#20101) 2024-04-29 17:58:33 +01:00
gh-link-to-custom-views-index.hbs
gh-link-to-custom-views-index.js
gh-loading-list.hbs
gh-loading-spinner.hbs
gh-loading-spinner.js
gh-member-avatar.hbs
gh-member-avatar.js
gh-member-details-activity.hbs
gh-member-details.hbs
gh-member-details.js
gh-member-label-input.hbs Improved long label handling (#20029) 2024-04-17 05:02:21 +00:00
gh-member-label-input.js
gh-member-settings-form.hbs
gh-member-settings-form.js
gh-member-single-label-input.hbs
gh-member-single-label-input.js
gh-members-filter-count.hbs
gh-members-filter-count.js
gh-members-import-mapping-input.hbs
gh-members-import-mapping-input.js
gh-members-import-table.hbs
gh-members-import-table.js
gh-members-no-members.hbs
gh-members-no-members.js
gh-members-recipient-select.hbs
gh-members-recipient-select.js
gh-members-segment-count.hbs
gh-members-segment-count.js
gh-members-segment-select.hbs
gh-members-segment-select.js
gh-migrate-iframe.hbs
gh-migrate-iframe.js
gh-migrate-modal.hbs
gh-migrate-modal.js
gh-mobile-nav-bar.hbs
gh-mobile-nav-bar.js
gh-nav-menu.hbs
gh-nav-menu.js
gh-notification.hbs
gh-notification.js
gh-notifications.hbs
gh-notifications.js
gh-portal-links.hbs
gh-portal-links.js
gh-post-bookmark.hbs
gh-post-settings-menu.hbs 🐛 Fixed admin error when deleting an unsaved or imported post (#20053) 2024-04-18 10:02:02 -07:00
gh-post-settings-menu.js
gh-progress-bar.hbs
gh-progress-bar.js
gh-psm-authors-input.hbs
gh-psm-authors-input.js
gh-psm-tags-input.hbs
gh-psm-tags-input.js
gh-psm-template-select.hbs
gh-psm-template-select.js
gh-psm-visibility-input.hbs
gh-psm-visibility-input.js
gh-recipient-filter-count.hbs
gh-referral-invite.hbs
gh-referral-invite.js
gh-resource-select.hbs
gh-resource-select.js
gh-scroll-trigger.hbs
gh-scroll-trigger.js
gh-search-input.hbs Extracted Admin's search behaviour from component to service (#20008) 2024-04-10 11:44:24 +00:00
gh-search-input.js Updated 'Users' to 'Staff' in search dropdown component (#20064) 2024-04-22 14:49:43 +00:00
gh-site-iframe.hbs
gh-site-iframe.js
gh-skip-link.js
gh-task-button.hbs
gh-task-button.js
gh-text-input.hbs
gh-text-input.js
gh-textarea.js
gh-theme-error-li.hbs
gh-theme-error-li.js
gh-token-input.hbs
gh-token-input.js
gh-trim-focus-input.js
gh-twitter-url-input.hbs
gh-twitter-url-input.js
gh-unsplash-photo.hbs
gh-unsplash-photo.js
gh-unsplash.hbs
gh-unsplash.js
gh-uploader.hbs
gh-uploader.js
gh-url-input.hbs
gh-url-input.js
gh-url-preview.hbs
gh-url-preview.js
gh-view-title.hbs
gh-view-title.js
koenig-image-editor.hbs
koenig-image-editor.js
koenig-lexical-editor-input.hbs
koenig-lexical-editor-input.js
koenig-lexical-editor.hbs
koenig-lexical-editor.js Updated editor link search to group results (#20058) 2024-04-22 05:35:18 +00:00
liquid-container.js
modal-base.js
modal-impersonate-member.hbs
modal-impersonate-member.js
modal-import-members.hbs
modal-import-members.js
modal-member-tier.hbs
modal-member-tier.js
modal-members-label-form.hbs
modal-members-label-form.js
modal-post-history.hbs
modal-post-history.js
modal-unsubscribe-members.hbs
modal-unsubscribe-members.js
power-select-vertical-collection-options.hbs
power-select-vertical-collection-options.js
react-component.hbs
websockets.hbs
websockets.js