Title: fab-people-picker resolveSuggestions callback gets invoked with the incorrect scope · Issue #213 · microsoft/angular-react · GitHub
Open Graph Title: fab-people-picker resolveSuggestions callback gets invoked with the incorrect scope · Issue #213 · microsoft/angular-react
X Title: fab-people-picker resolveSuggestions callback gets invoked with the incorrect scope · Issue #213 · microsoft/angular-react
Description: I am using the fab-people-picker component and have attached a callback to resolveSuggestions. When the callback is invoked, the this pointer points to the fab-people-picker component instead of pointing to the container (i.e.. my compon...
Open Graph Description: I am using the fab-people-picker component and have attached a callback to resolveSuggestions. When the callback is invoked, the this pointer points to the fab-people-picker component instead of po...
X Description: I am using the fab-people-picker component and have attached a callback to resolveSuggestions. When the callback is invoked, the this pointer points to the fab-people-picker component instead of po...
Opengraph URL: https://github.com/microsoft/angular-react/issues/213
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fab-people-picker resolveSuggestions callback gets invoked with the incorrect scope","articleBody":"I am using the fab-people-picker component and have attached a callback to resolveSuggestions. When the callback is invoked, the ` this` pointer points to the fab-people-picker component instead of pointing to the container (i.e.. my component where the fab-people-picker is added).\r\n\r\nThis is a screenshot of the `this` pointer when resolveSuggestions callback is invoked.\r\n\r\n\r\nSame's the case with any callback that is provided as an input to the component, e.g.. selectedItems callback\r\n\r\nI tried to get around this by binding my method to `(onResolveSuggestions)=\"AuthorPickerInputChanged($event)\"` however as expected, the $event is empty, however the `this` variable is correct and points to my component.\r\n\r\nI need `this` to point to my component so that I can use the injected services to actually resolve the suggestions. \r\n\r\nAny suggestions on how I can get this to work?","author":{"url":"https://github.com/nmallick1","@type":"Person","name":"nmallick1"},"datePublished":"2022-12-29T02:33:51Z","url":"https://github.com/microsoft/angular-react/issues/213"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2ec8f7ec-ce73-7c07-a0f4-188adf2d4fc3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A726:3F8A67:B14DF8:EDE1F4:6B00F55B |
| html-safe-nonce | 0ef786eee2f7017d160336554d679faec96c91cf1f738b3cde9a6c342035375b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzI2OjNGOEE2NzpCMTRERjg6RURFMUY0OjZCMDBGNTVCIiwidmlzaXRvcl9pZCI6Ijg5NTU4MzM2NzI0NjkxMTYyNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0a7b76d3c4a3530a02dfb4652583d37af7ab23a4a419471f067c4bb4e50af6e4 |
| hovercard-subject-tag | issue:1513314371 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/angular-react/213/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40cb94ff7877674c86ac59a2235409254fe11980fc4f4dfc6d04dda5da490e10/microsoft/angular-react/issues/213 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40cb94ff7877674c86ac59a2235409254fe11980fc4f4dfc6d04dda5da490e10/microsoft/angular-react/issues/213 |
| og:image:alt | I am using the fab-people-picker component and have attached a callback to resolveSuggestions. When the callback is invoked, the this pointer points to the fab-people-picker component instead of po... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nmallick1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/angular-react git https://github.com/microsoft/angular-react.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 144321557 |
| octolytics-dimension-repository_nwo | microsoft/angular-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 144321557 |
| octolytics-dimension-repository_network_root_nwo | microsoft/angular-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width