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

Force sync does not update textarea valid/invalid status #11

Open
1 of 2 tasks
SamWhited opened this issue Jun 11, 2018 · 4 comments
Open
1 of 2 tasks

Force sync does not update textarea valid/invalid status #11

SamWhited opened this issue Jun 11, 2018 · 4 comments
Labels

Comments

@SamWhited
Copy link
Contributor

SamWhited commented Jun 11, 2018

I'm submitting a...

  • Bug report
  • Feature request

Reproduction steps

https://jsfiddle.net/hv352zf8/

Notice that in the example if you remove the inscrybmde the CSS changes the button color. However, if you set a markdown editor on the textarea, even with forceSync as shown in the readme, the button text does not update.

Version information

Browser type and version: Firefox 62.0a1
SimpleMDE version: 1.11.3

@CWharton
Copy link
Contributor

Will have to find time to look into this one unless you have time to do a PR

@CWharton CWharton added the bug label Jul 21, 2018
@SamWhited
Copy link
Contributor Author

Will have to find time to look into this one unless you have time to do a PR

Normally I'd love to help, but I'm afraid that I've spent my entire career avoiding front end work (and JavaScript in particular) at all costs and have no idea how any of this works :)

@CWharton
Copy link
Contributor

I understand. I will try and find time to look into it more.

@zipprich
Copy link

After codemirror is active the sourcecode looks like this:
textarea2

and therefore your CSS selector "textarea:valid+button" won't match.

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

No branches or pull requests

3 participants