Comment component messages in event handlers?

Circling back with an update -- thank you all for your feedback on how this ergonomic aspect of the comment component could be improved! Thanks for confirming the workaround worked for you @charlie123 !

As of July 31 on Cloud, and in the 3.75 stable release version for Self-hosted, this should be fixed by default so you may not need to use the debounce workaround anymore.

As part of the revamped new Comment Thread component (announced here New: Comment Thread), our eng team made an update to delay the clear so that on submit, the submit handler can still read commentThread1.value:

If you are on the earlier version (the old Comment component), you'll need to upgrade to the new component version with the one click upgrade option on the editor to take advantage of the newer improvements.

This should solve for the issue where with the submit handler, builders had a harder time getting the "just submitted" value and needed to implement a timed wait. Try out the comment thread, and if you have questions or feedback about configuring it, please create a new topic here on the forum!

1 Like