styled raw input: disable required props, use validate instead
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import { generateIdentifier } from './util';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
type $Props = Omit<HTMLInputAttributes, 'name' | 'value'> & {
|
||||
type $Props = Omit<HTMLInputAttributes, 'name' | 'value' | 'required' | 'aria-required'> & {
|
||||
name?: string;
|
||||
value?: string;
|
||||
validate?: ValidatorOptions;
|
||||
@@ -62,6 +62,7 @@
|
||||
{name}
|
||||
{placeholder}
|
||||
aria-label={placeholder}
|
||||
aria-required={validateOpts?.required}
|
||||
{...others}
|
||||
bind:value
|
||||
class={[
|
||||
|
||||
Reference in New Issue
Block a user