Rammanojpotla added a comment.

@Lucas_Werkmeister_WMDE the code in the <textarea> tag is getting updated whenever language is changed but it is being added a style of display: none so it is not getting displayed as per the picture below
F14920171: quer.png

I think the problem is at the following code in Editor.js

    $parent.find( '.CodeMirror-placeholder' ).text(
				$parent.find( '.queryEditor' ).prop( 'placeholder' ) 
			);

The above code finds element with class ".queryEditor" (i.e <textarea>has the class) and gets the placeholder's value of the element but the problem here is it is getting the static value but not dynamically updated value. I guess adding data-i18n tag to element with class '.CodeMirror-placeholder' would solve this?


TASK DETAIL
https://phabricator.wikimedia.org/T168655

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Rammanojpotla
Cc: Rammanojpotla, Liuxinyu970226, PokestarFan, Aklapper, Jonas, Lucas_Werkmeister_WMDE, Lahi, Gq86, Darkminds3113, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Avner, Gehel, FloNight, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to