S-button with slot = "primary-action" is not work

I have tried to add event to a s-button with slot=”primary-action” but when i clicked this button, it wasn’t trigger my event, if i remove slot=”primary-action”, it will work normally. I also tried remove variant = “primary“ like some topic i readed, but this not worked too. Is it a bug of shopify polaris? Does anyone have solution for this ?
<s-page heading={effect ? `Edit: ${effect.name}` : ROUTE.CREATE_STORE_EFFECT.TITLE}>

        <s-button variant="primary" slot="primary-action" onClick={() => { console.log('button clicked') }}>

            Enable Auto-Sorting !!!

        </s-button>

    </s-page >