kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

🐞 Bug: Tab-Callback `onSelect` "feuert" nicht

Open deleonio opened this issue 2 years ago β€’ 0 comments

Es scheint der onSelect-Callback am Tab nicht zu triggern.

Analyse:

  • Es liegt aktuell kein Fehler in KoliBri vor - die API am Tab-Schalter sieht kein _on vor und ist auch nicht implementiert
  • Es gibt kein onSelect am Schalter (Button, Tab)
  • Es gibt nur onSelect, onCreate am Tabs
  • Typ fΓΌr ein Tab (Button, Schalter) soll anpassen _on: {onSelect}, Omit nutzen - ({onSelect, onClose: true | () =>void})

Schema: https://github.com/public-ui/kolibri/blob/34d7e5f78f7293a4961fa547fe929c776d289ace/packages/schema/src/components/tabs.ts#L18

deleonio avatar Jan 22 '24 07:01 deleonio