konstaui / konsta

Mobile UI components made with Tailwind CSS
https://konstaui.com
MIT License
3.3k stars 119 forks source link

Message component missing onclick prop #177

Closed aabluedragon closed 6 months ago

aabluedragon commented 7 months ago

Check that this is really a bug

Reproduction link

none

Bug description

Message component is missing onclick prop

Expected Behavior

onclick should be added, for listening to clicks on Message component

Actual Behavior

No response

Konsta UI version

3.1.0

Platform/Target and Browser Versions

Windows 11

Validations

Would you like to open a PR for this bug?

Workaround

<Messages>    
     {#each messagesData as message, index (index)}
        <div on:click={()=>handleMessageClick(message)} class={message.type=="sent"?"grid justify-items-end":''}>
                 <Message ..../>
            </div>
     {/each}
</Messages>