Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - Prevent adding of data-disable-with option twice in html. #21661

Merged
merged 1 commit into from
Sep 29, 2015

Conversation

akshay-vishnoi
Copy link
Contributor

Earlier
when data-disable-with option is added direclty as in options then

submit_tag("Save", { "data-disable-with" => "Processing..." })
# => <input type="submit" name="commit" value="Save" data-disable-with="Processing..." data-disable-with="Processing..." />

Now
when data-disable-with option is added direclty as in options then

submit_tag("Save", { "data-disable-with" => "Processing..." })
# => <input type="submit" name="commit" value="Save" data-disable-with="Processing..." />

Earlier
when `data-disable-with` option is added direclty as in options then

```ruby
submit_tag("Save", { "data-disable-with" => "Processing..." })
# => <input type="submit" name="commit" value="Save" data-disable-with="Processing..." data-disable-with="Processing..." />
```

Now
when `data-disable-with` option is added direclty as in options then

```ruby
submit_tag("Save", { "data-disable-with" => "Processing..." })
# => <input type="submit" name="commit" value="Save" data-disable-with="Processing..." />
```
@rails-bot
Copy link

r? @schneems

(@rails-bot has picked a reviewer for you, use r? to override)

@akshay-vishnoi
Copy link
Contributor Author

@rafaelfranca - Can you look at this as well?

rafaelfranca added a commit that referenced this pull request Sep 29, 2015
Fix - Prevent adding of `data-disable-with` option twice in html.
@rafaelfranca rafaelfranca merged commit 0131c70 into rails:master Sep 29, 2015
@akshay-vishnoi
Copy link
Contributor Author

Thanks 💚

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

Successfully merging this pull request may close these issues.

None yet

4 participants