microsoft / fluentui-contrib

Monorepo for contributor extension packages to Fluent UI
MIT License
25 stars 27 forks source link

fix(react-chat): allow custom tabster attribute on ChatMessage #115

Closed YuanboXue-Amber closed 4 months ago

YuanboXue-Amber commented 4 months ago

Before:

ChatMessage doesn't apply custom data-tabster attribute. This happens because react-chat is copied from teams Chat. And teams Chat merges tabster attribute in useChatMessageFocusableGroup hook. But somehow this part wasn't copied and useChatMessageFocusableGroup ends up just applying tabster attribute without merging.

After:

ChatMessage allows custom data-tabster attribute. useChatMessageFocusableGroup hook is removed