File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
components/x-gift-article/src Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,12 @@ const withGiftFormActions = withActions(
263
263
return ( state ) => {
264
264
state . highlight = document . querySelector ( `.${ state . highlightClassName } ` ) ?. textContent
265
265
state . highlightClassName = document . querySelector ( `.${ state . highlightClassName } ` ) ?. classList . value
266
- return { highlight : state . highlight , highlightClassName : state . highlightClassName }
266
+ state . includeHighlights = true
267
+ return {
268
+ highlight : state . highlight ,
269
+ highlightClassName : state . highlightClassName ,
270
+ includeHighlights : state . includeHighlights
271
+ }
267
272
}
268
273
}
269
274
}
@@ -296,7 +301,7 @@ const withGiftFormActions = withActions(
296
301
isGiftUrlCreated : false ,
297
302
isGiftUrlShortened : false ,
298
303
isNonGiftUrlShortened : false ,
299
- includeHighlights : true ,
304
+ includeHighlights : props . highlight !== undefined ,
300
305
showAdvancedSharingOptions : false ,
301
306
showNonSubscriberOptions : false ,
302
307
highlight : undefined ,
You can’t perform that action at this time.
0 commit comments