Skip to content

dropdowns (enums) no longer work on Chrome OSX in some circumstances #101

@greggman

Description

@greggman

I don't know when this started but I've been seeing it around the net in various demos

Here's a simple repo

<!doctype html>
<html>
  <body>
  </body>
</html>
<script src="dat.gui.min.js"></script>
<script>
var guiWindow = function () {
    this.texture = "dotted";
};

function drawGui() {
    guiElement = new guiWindow();
    var a = new dat.GUI();

    var f3 = a.addFolder('General');
    f3.add(guiElement,"texture",["plane", "dotted","lined"]).listen().onChange(function (b) {});
    f3.open();
};
drawGui();
</script>

Run it, click the "dotted" value. Chrome goes crazy

Here's a live version

Here's a gif showing the issue. I only click one time and chrome goes into this fit bogging down the entire OS

opt

PS: ignore the colors changing. That seems to have something to do with my gif compressor. Also trying it in Chrome Canary with no extensions it still happens. Other friends have confirmed this issue on their Macs. Happens in Chrome OSX but not Chrome Windows nor Safari OSX

Strangely the ones on the dat.gui demo site work but the code above seems like a pretty minimal repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions