question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A few bugs with version v0.97.0

See original GitHub issue

Hi,

Probably the most amazing css/js framework I have seen so far, so I thought you would appreciate some feedback about several issues I have found.

Setup

Materialize v0.97.0 Safari 8.0.6

Issues

  1. When a date picker is applied to an input field inside a <div class="input-field"></div>, the placeholder should move up (respectively down) when the picker opens (respectively closes). placeholder_overlapping

  2. IMHO, even though it is not part of the range slider components of Google Material Design, Materialize should provide a double range slider.

    double_range_slider_component

  3. Input error is misplaced when input has no value, most likely because of the placeholder . It only displays correctly when the placeholder slides up.

    Default

    wrong

    Workaround

    placeholder=""
    

    Result

    right

  4. Long error messages will span over several lines and break the design.

    Default

    wrong

    Workaround

    provided by @marci2020

    label[data-error]:after {
      white-space: nowrap;
    }
    

    Result

    right

  5. IMHO, when several inputs are stacked, inputs below are too close to the error message.

    Default:

    wrong

    Workaround

    provided by @marci2020

    Adding “col” class to every element with “input-field” class and putting it into an element with class “row” (like done on Materialize form examples).

    <div class="row">
    <div class="input-field col s12">
        <input disabled value="I am not editable" id="disabled" type="text" class="validate">
        <label for="disabled">Disabled</label>
    </div>
    </div>
    

    Result

    right`

  6. Error messages (from data-error) are not displayed on inputs with the datepicker class.

    datepicker_error

  7. Close a date picker, switch browser tab, come back to the previous tab and the picker reopens. Bug has been reported on Safari (8.0.6) and Chrome (43.0.2357.134).

Looking forward to reading you.

Cheers, and keep the amazing work !

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:6
  • Comments:34 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Clemzdcommented, Jul 19, 2015

@gempain I was saying this hack is better than alterate the HTML code. I think that placeholder=“” is not a good practise.

And oh my bad, this solution does not work anyway This one works instead.

.input-field label {
    font-size: 0.8rem;
    -webkit-transform: translateY(-140%);
    -moz-transform: translateY(-140%);
    -ms-transform: translateY(-140%);
    -o-transform: translateY(-140%);
    transform: translateY(-140%);
}
0reactions
jtlthe2commented, Jan 22, 2018

I put the following workaround in my CSS to wrap the text when I specified and when it needed to in my Angular 2 app.

label[data-error], label[data-success] {
    width: 100%;
    white-space: pre-wrap;
}

It allowed me to fill my data-error property with the following

[attr.data-error]="'Line 1 of the message.\nLine 2 of the message. I am going to make this really really really really really really really really really really really really really really really really really really really really really really really long, so it wraps.\nLine 3 of the message.\n'"

which then displayed the error how I wanted (image attached).

screen shot 2018-01-22 at 5 57 22 pm

Read more comments on GitHub >

github_iconTop Results From Across the Web

Archived release notes for Microsoft Edge Stable Channel
Fixed various bugs and performance issues for Extended Stable release. Version 97.0.1072.69: January 20. Stable channel security updates are ...
Read more >
Tuple Changelog | MacOS
Bug where Tuple wouldn't remember your preferred audio device. Changed. Calls no longer end when you close your pair's shared screen window. Tuple's...
Read more >
Client Options - Google Cloud
All clients in sub-packages are configurable via client options. These options are described here: https://godoc.org/google.golang.org/api/option.
Read more >
Neo SPCC rolls out an improved NeoGo node for the N3 ...
Neo SPCC has released a newly updated version of its Go node for N3. ... V0.97.0 also includes two bug fixes: the first...
Read more >
ChangeLog – Scrollbie Studio
No need to setup MPUIKit after importing the package. Bug Fixes. Falloff not working with circles on android when a larger value is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found