Skip to content

Commit 767b62f

Browse files
authored
Merge pull request #35 from CodeDead/release/v2.2.1
Release/v2.2.1
2 parents 7f56275 + 5c5cd0b commit 767b62f

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "advanced-passgen",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.10.5",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "advanced-passgen"
3-
version = "2.2.0"
3+
version = "2.2.1"
44
description = "Advanced PassGen can be used to quickly generate thousands of passwords"
55
authors = ["CodeDead <admin@codedead.com>"]
66
license = "GPL-3.0-only"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "advanced-passgen",
11-
"version": "2.2.0"
11+
"version": "2.2.1"
1212
},
1313
"tauri": {
1414
"allowlist": {

src/routes/Home/index.jsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,28 +118,36 @@ const Home = () => {
118118
<TextField
119119
label={language.minimumLength}
120120
type="number"
121+
autoComplete="off"
121122
value={min}
122123
error={min > max}
123124
fullWidth
124-
onChange={(e) => d2(setPasswordLengthMin(e.target.value))}
125+
onChange={(e) => d2(setPasswordLengthMin(parseInt(e.target.value, 10)))}
125126
/>
126127
</Grid>
127128
<Grid item xs={12} md={12} lg={12}>
128129
<TextField
129130
label={language.maximumLength}
130131
type="number"
132+
autoComplete="off"
131133
value={max}
132134
error={max < min}
133135
fullWidth
134-
onChange={(e) => d2(setPasswordLengthMax(e.target.value))}
136+
onChange={(e) => d2(setPasswordLengthMax(parseInt(e.target.value, 10)))}
135137
/>
136138
</Grid>
137139
<Grid item xs={12} md={12} lg={12}>
138140
<TextField
139141
type="number"
142+
autoComplete="off"
140143
label={language.amount}
141144
value={amount}
142-
onChange={(e) => d2(setPasswordAmount(e.target.value))}
145+
error={amount.length === 0 || amount < 1}
146+
onChange={(e) => {
147+
if (e.target.value && e.target.value.length > 0) {
148+
d2(setPasswordAmount(parseInt(e.target.value, 10)));
149+
}
150+
}}
143151
fullWidth
144152
/>
145153
</Grid>

0 commit comments

Comments
 (0)