swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.25k stars 746 forks source link

Input commands: check and radio selected #404

Open bomastudio opened 8 years ago

bomastudio commented 8 years ago

In all browser the demo

https://swisnl.github.io/jQuery-contextMenu/demo/input.html

doesn't fire at startup the selection on radio nor on checkbox input type.

Why?

bbrala commented 8 years ago

I've looked into it, but cant seem to find the reason right now. Bit weird, seems the initial state is ignored and for someweird reason... I'll try again soon.

MRVDOG commented 6 years ago

sorry to bump an old issue, but as it hasn't been marked as resolved, I didn't see the need to create a new issue for the same thing, adding selected: true to a type: 'checkbox' still doesn't set the initial state, any chance for a fix on this? I feel like after 2 years, now is a good time to try again ;) Thanks

MRVDOG commented 6 years ago

sorry to bump an old issue, but as it hasn't been marked as resolved, I didn't see the need to create a new issue for the same thing, adding selected: true to a type: 'checkbox' still doesn't set the initial state, any chance for a fix on this? I feel like after 2 years, now is a good time to try again ;) Thanks

ughhh.... apologies, this isn't a bug... it was my own stupidity!!!

input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

will prevent inputs looking like inputs, so they didn't appear checked hahaha, whoops