mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(slider): disabled
Slider should not submit a form (#1758)
A single disabled input should not submit a form. If there are other non-disabled inputs in the same form, the value of the disabled input should not be included upon form submission.
This commit is contained in:
parent
d5a4a8b94a
commit
ab21c89ab9
1 changed files with 0 additions and 11 deletions
|
@ -193,21 +193,10 @@
|
|||
class:bx--slider__filled-track="{true}"
|
||||
style="transform: translate(0, -50%) scaleX({left / 100})"
|
||||
></div>
|
||||
<input
|
||||
type="hidden"
|
||||
class:bx--slider__input="{true}"
|
||||
name="{name}"
|
||||
value="{value}"
|
||||
required="{required}"
|
||||
min="{min}"
|
||||
max="{max}"
|
||||
step="{step}"
|
||||
/>
|
||||
</div>
|
||||
<span class:bx--slider__range-label="{true}">{maxLabel || max}</span>
|
||||
<input
|
||||
type="{hideTextInput ? 'hidden' : inputType}"
|
||||
style="{hideTextInput ? 'display: none' : undefined}"
|
||||
id="input-{id}"
|
||||
name="{name}"
|
||||
class:bx--text-input="{true}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue