-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[ZEPPELIN-1747] Fix Korean notename input problem #1723
Conversation
@tae-jun Thanks for your quick reply. |
@@ -15,7 +15,7 @@ | |||
<h3> | |||
<div style="float: left; width: auto; max-width: 40%" | |||
ng-controller="ElasticInputCtrl as input"> | |||
<input type="text" pu-elastic-input class="form-control2" placeholder="{{noteName(note)}}" style="min-width: 0px; max-width: 95%;" | |||
<input type="text" pu-elastic-input class="form-control2" placeholder="Note {{note.id}}" style="min-width: 0px; max-width: 95%;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understood this fix.
But displaying a note id in the placeholder seems to be weird also, isn't it?
The placeholder is just a simple value or a short description of the expected input.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cuspymd Thanks for your comment! As you can see, I just wanted to fix the Korean input problem without any changes to the existing behavior. However, I'm not sure what value would be appropriate for this placeholder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marchpig A watch is not cheap resource in AnguarJS.
Let's erase meaningless interpolation '{{..}}'.
How about just "New Name" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cuspymd for your suggestion. "New name" seems to be appropriate!
Thanks @cuspymd for providing review. |
What is this PR for?
Korean notename is incorrectly typed on Firefox.
This PR fixes the issue by changing placeholder attribute of the input field.
Getting the placeholder text from
noteName()
is unnecessary because the text is visible only when the notename is blank.What type of PR is it?
Bug Fix
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1747
How should this be tested?
Type Korean notename in action bar using Firefox browser.
Screenshots (if appropriate)
Questions: