remove attr from input
This commit is contained in:
1 parent
af0903b126
commit
1dcfc67e0a
5 files changed
+4
-11
No files matched your search
@@ -15,7 +15,6 @@
|
||||
type=@type
|
||||
disabled=@disabled
|
||||
error=@error
|
||||
placeholder=@placeholder
|
||||
aria-describedby=(concat (if @helperText (concat 'helper-text-' this.id)) (if @error (concat ' errors-' this.id)))
|
||||
)
|
||||
errors=(component 'rose/form/errors'
|
||||
@@ -49,7 +48,6 @@
|
||||
@type={{@type}}
|
||||
@disabled={{@disabled}}
|
||||
@error={{@error}}
|
||||
@placeholder={{@placeholder}}
|
||||
@aria-describedby="{{if @helperText (concat 'helper-text-' this.id)}} {{if @error (concat 'errors-' this.id)}}" />
|
||||
</div>
|
||||
{{yield (hash
|
||||
|
||||
@@ -22,7 +22,6 @@ Renders a simple form input.
|
||||
@disabled={{false}}
|
||||
@icon='flight-icons/svg/search-16'
|
||||
readonly={{false}}
|
||||
placeholder='this is a placeholder'
|
||||
/>
|
||||
```
|
||||
|
||||
@@ -41,7 +40,6 @@ Or a fully contextual component without a wrapper, for maximum flexibility.
|
||||
@error={{false}}
|
||||
@disabled={{false}}
|
||||
readonly={{false}}
|
||||
placeholder='la la la'
|
||||
>
|
||||
|
||||
</Rose::Form::Input>
|
||||
@@ -62,7 +60,6 @@ Or a fully contextual component without a wrapper, for maximum flexibility.
|
||||
@disabled={{disabled}}
|
||||
readonly={{read-only}}
|
||||
@icon={{icon}}
|
||||
placeholder={{placeholder}}
|
||||
/>
|
||||
`,
|
||||
context: {
|
||||
@@ -78,7 +75,6 @@ Or a fully contextual component without a wrapper, for maximum flexibility.
|
||||
),
|
||||
value: text('value', 'Value'),
|
||||
label: text('label', 'Label'),
|
||||
placeholder: text('placeholder', 'this is a placeholder'),
|
||||
helperText: text('helperText', 'Helper text'),
|
||||
link: text('link', 'link goes here'),
|
||||
linkText: text('linkText', 'link text'),
|
||||
|
||||
@@ -6,5 +6,4 @@
|
||||
name={{@name}}
|
||||
@type={{@type}}
|
||||
@value={{@value}}
|
||||
placeholder={{@placeholder}}
|
||||
aria-describedby={{@aria-describedby}} />
|
||||
@@ -103,7 +103,7 @@
|
||||
@value={{endpoint.value}}
|
||||
@error={{@model.errors.preferred_endpoints}}
|
||||
@contextual={{true}}
|
||||
@placeholder='cidr:2001:4860:4860::8888/32'
|
||||
placeholder='cidr:2001:4860:4860::8888/32'
|
||||
as |field|
|
||||
>
|
||||
<field.field />
|
||||
@@ -132,7 +132,7 @@
|
||||
<form.input
|
||||
@type='text'
|
||||
@value={{@model.preferred_endpoint}}
|
||||
@placeholder='cidr:2001:4860:4860::8888/32'
|
||||
placeholder='cidr:2001:4860:4860::8888/32'
|
||||
/>
|
||||
</row.cell>
|
||||
<row.cell @shrink={{true}}>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
@value={{endpoint.value}}
|
||||
@error={{@model.errors.preferred_endpoints}}
|
||||
@contextual={{true}}
|
||||
@placeholder='cidr:2001:4860:4860::8888/32'
|
||||
placeholder='cidr:2001:4860:4860::8888/32'
|
||||
as |field|
|
||||
>
|
||||
<field.field />
|
||||
@@ -132,7 +132,7 @@
|
||||
<form.input
|
||||
@type='text'
|
||||
@value={{@model.preferred_endpoint}}
|
||||
@placeholder='cidr:2001:4860:4860::8888/32'
|
||||
placeholder='cidr:2001:4860:4860::8888/32'
|
||||
/>
|
||||
</row.cell>
|
||||
<row.cell @shrink={{true}}>
|
||||
|
||||
Reference in new issue
Block a user