Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

mdEditDialog: "type" attribute is not working #237

Closed
lyschoening opened this issue Jan 8, 2016 · 1 comment
Closed

mdEditDialog: "type" attribute is not working #237

lyschoening opened this issue Jan 8, 2016 · 1 comment

Comments

@lyschoening
Copy link

The type option is not working as expected. To reproduce specify e.g. {type: 'number'}.

The issue is in this line:

var attrs = 'type="' + options.type ? options.type : 'text' + '"';

var attrs = 'type="' + options.type ? options.type : 'text' + '"';

It should read:

var attrs = 'type="' + (options.type ? options.type : 'text') + '"';

As it reads now, attrs is always set to options.type, as opposed to type="${options.type}".

daniel-nagy pushed a commit that referenced this issue Jan 8, 2016
@daniel-nagy
Copy link
Owner

Fixed!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants