Skip to content

Commit 9ce85f7

Browse files
committed
fix(feedback): Override TriggerLabel Option (#12316)
Fixes #12229
1 parent 0ec8f82 commit 9ce85f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/feedback/src/core/integration.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,11 @@ export const buildFeedbackIntegration = ({
251251
};
252252

253253
const _createActor = (optionOverrides: OverrideFeedbackConfiguration = {}): ActorComponent => {
254-
const shadow = _createShadow(_options);
255-
const actor = Actor({ triggerLabel: _options.triggerLabel, shadow });
256-
const mergedOptions = mergeOptions(_options, {
257-
...optionOverrides,
254+
const mergedOptions = mergeOptions(_options, optionOverrides);
255+
const shadow = _createShadow(mergedOptions);
256+
const actor = Actor({ triggerLabel: mergedOptions.triggerLabel, shadow });
257+
_attachTo(actor.el, {
258+
...mergedOptions,
258259
onFormOpen() {
259260
actor.hide();
260261
},
@@ -265,7 +266,6 @@ export const buildFeedbackIntegration = ({
265266
actor.show();
266267
},
267268
});
268-
_attachTo(actor.el, mergedOptions);
269269
return actor;
270270
};
271271

0 commit comments

Comments
 (0)