mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
fix(Stepper): set autocomplete to off (#12892)
This commit is contained in:
parent
1cd6050a3b
commit
4cff03dd70
@ -476,6 +476,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
value="1"
|
||||
style
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
|
@ -331,6 +331,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
role="spinbutton"
|
||||
class="van-stepper__input"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
|
@ -318,6 +318,7 @@ export default defineComponent({
|
||||
// set keyboard in modern browsers
|
||||
inputmode={props.integer ? 'numeric' : 'decimal'}
|
||||
placeholder={props.placeholder}
|
||||
autocomplete="off"
|
||||
aria-valuemax={props.max}
|
||||
aria-valuemin={props.min}
|
||||
aria-valuenow={current.value}
|
||||
|
@ -32,6 +32,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
value="1"
|
||||
style
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -74,6 +75,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
value="1"
|
||||
style
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -116,6 +118,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
value="5"
|
||||
style
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="8"
|
||||
aria-valuemin="5"
|
||||
aria-valuenow="5"
|
||||
@ -158,6 +161,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
value="1"
|
||||
style
|
||||
inputmode="numeric"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -201,6 +205,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
style
|
||||
disabled
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -245,6 +250,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
style
|
||||
readonly
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -287,6 +293,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
value="1.0"
|
||||
style
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1.0"
|
||||
@ -329,6 +336,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
value="1"
|
||||
style="width:40px;height:32px;"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -371,6 +379,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
value="1"
|
||||
style
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -414,6 +423,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
style="height:22px;"
|
||||
readonly
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
|
@ -24,6 +24,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
role="spinbutton"
|
||||
class="van-stepper__input"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -58,6 +59,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
role="spinbutton"
|
||||
class="van-stepper__input"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -92,6 +94,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
role="spinbutton"
|
||||
class="van-stepper__input"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="8"
|
||||
aria-valuemin="5"
|
||||
aria-valuenow="5"
|
||||
@ -126,6 +129,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
role="spinbutton"
|
||||
class="van-stepper__input"
|
||||
inputmode="numeric"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -161,6 +165,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
class="van-stepper__input"
|
||||
disabled
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -197,6 +202,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
class="van-stepper__input"
|
||||
readonly
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -231,6 +237,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
role="spinbutton"
|
||||
class="van-stepper__input"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1.0"
|
||||
@ -267,6 +274,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
class="van-stepper__input"
|
||||
style="width: 40px; height: 32px;"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -302,6 +310,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
role="spinbutton"
|
||||
class="van-stepper__input"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -339,6 +348,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
style="height: 22px;"
|
||||
readonly
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
|
@ -17,6 +17,7 @@ exports[`should disable buttons and input when using disabled prop 1`] = `
|
||||
class="van-stepper__input"
|
||||
disabled
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
@ -48,6 +49,7 @@ exports[`should update input height and button size when using button-size prop
|
||||
class="van-stepper__input"
|
||||
style="height: 2rem;"
|
||||
inputmode="decimal"
|
||||
autocomplete="off"
|
||||
aria-valuemax="Infinity"
|
||||
aria-valuemin="1"
|
||||
aria-valuenow="1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user