@makolabs/ripple 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -175,11 +175,13 @@
175
175
  }
176
176
 
177
177
  function handleRoleChange(roleValue: string) {
178
- formData.role = roleValue;
179
178
  const role = roles?.find((r: Role) => r.value === roleValue);
180
- if (role) {
181
- formData.permissions = [...role.permissions];
182
- }
179
+ // Reassign entire formData object to ensure reactivity
180
+ formData = {
181
+ ...formData,
182
+ role: roleValue,
183
+ permissions: role ? [...role.permissions] : []
184
+ };
183
185
  }
184
186
 
185
187
  async function handleRegenerateApiKey() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makolabs/ripple",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Simple Svelte 5 powered component library ✨",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {