Skip to content

Commit

Permalink
Add readonly option to field text
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkink committed Apr 28, 2018
1 parent fb8740b commit c4f42fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Cockpit/assets/components/field-text.tag
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
this.slug = this.$getValue(opts.bind+'_slug') || '';
}

(['maxlength', 'minlength', 'step', 'placeholder', 'pattern', 'size']).forEach( function(key) {
(['readonly', 'maxlength', 'minlength', 'step', 'placeholder', 'pattern', 'size']).forEach( function(key) {
if (opts[key]) $this.refs.input.setAttribute(key, opts[key]);
});

Expand Down

1 comment on commit c4f42fc

@thinkink
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the commit, I wanted to put it in another branch. This change may not be relevant. And it's solved by @pauloamgomes in agentejo#677.

Please sign in to comment.