@skeletonlabs/skeleton 2.6.1-dev.04dfa822 → 2.6.1-dev.21f83326

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.
@@ -104,8 +104,12 @@ function onConfirm() {
104
104
  }
105
105
  function onPromptSubmit(event) {
106
106
  event.preventDefault();
107
- if ($modalStore[0].response)
108
- $modalStore[0].response(promptValue);
107
+ if ($modalStore[0].response) {
108
+ if ($modalStore[0].valueAttr !== void 0 && "type" in $modalStore[0].valueAttr && $modalStore[0].valueAttr.type === "number")
109
+ $modalStore[0].response(parseInt(promptValue));
110
+ else
111
+ $modalStore[0].response(promptValue);
112
+ }
109
113
  modalStore.close();
110
114
  }
111
115
  function onKeyDown(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.6.1-dev.04dfa822",
3
+ "version": "2.6.1-dev.21f83326",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {