A platform for community discussion. Free, open, simple.
FIX: user autocomplete should work even when no onRender callback provided (#36161)
Kelv3b2d0b45b7a2
diff --git a/frontend/discourse/app/components/user-autocomplete-results.gjs b/frontend/discourse/app/components/user-autocomplete-results.gjsindex 3260d8ac746..caf5335c86d 100644--- a/frontend/discourse/app/components/user-autocomplete-results.gjs+++ b/frontend/discourse/app/components/user-autocomplete-results.gjs@@ -49,13 +49,13 @@ export default class UserAutocompleteResults extends Component {@actionhandleInsert() {- this.args.onRender(this.args.results);+ this.args.onRender?.(this.args.results);}@actionhandleUpdate() {this.isInitialRender = false;- this.args.onRender(this.args.results);+ this.args.onRender?.(this.args.results);}@action