<div id="columns">
<div class="column" draggable="true"><header>Abracadabra</header></div>
<div class="column" draggable="true"><header>B</header></div>
<div class="column" draggable="true"><header>C</header></div>
</div>I have
<div id="columns">
<basics-poly>Abracadabra</basics-poly>
<basics-poly>B</basics-poly>
<basics-poly>C</basics-poly>
</div>
and
<polymer-element name="basics-poly">
<template>
<style>
...
</style>
<div id="column" class="column" draggable="true">
<header><content></content></header>
</div>
</template>
...
</polymer-element>
In the original version the following was needed to stop text fields etc from being selectable
[draggable] {
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
}
I can't find the equivalent for polymer / web components. My first attempt was
[draggable] /deep/ *{
And based on advice from SO (http://stackoverflow.com/questions/26271903/preventing-the-contents-of-draggable-polymer-elements-from-being-selectable?noredirect=1#comment41226052_26271903) I've tried
[draggable], [draggable] /deep/ *, [draggable]::content *, [draggable]::content /deep/ * {I've tried many other variants too but nothing works
What should I set the selector to in this case?
BTW full source for this example is https://bitbucket.org/andersmholmgren/ah_polymer_stuff/src/7f88d253fe98428e280c1fa4aceada1792a686e1/test/demo/?at=master
thanks
Anders
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/3bb53997-0007-404d-abd8-41194e4a8df0%40googlegroups.com.Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
[draggable] {
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
}
<core-list-dart height="100" data="{{data}}">
<template>
<test-row data="{{self}}"></test-row>
</template>
</core-list-dart><core-list-dart height="100" data="{{data}}">
<template>
<draggable-list-item>
<test-row data="{{self}}"></test-row>
</draggable-list-item>
</template>
</core-list-dart>cheers
Anders
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/9dd992c5-77c4-4302-b7eb-e4e1a0db24a8%40googlegroups.com.
<polymer-element name="xx-yy">
<template>
<div [draggable="true"]>
<!-- The text is projected into this content tag. The text isn't selectable but also not draggable, Drag only works if it is started outside of the text/content (on the div above) -->
<content></content>
</div>
</template>
</polymer-element>To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/900d2105-a8bc-4671-bb8e-4617c135c972%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Polymer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/polymer-dev/krEr-Wo1tVA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/900d2105-a8bc-4671-bb8e-4617c135c972%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/3206f01a-4902-4700-8f19-e1c788f05c09%40googlegroups.com.
But it's in dart so won't do you much good if you're using js.
Also the last release of core-list-dart broke things somewhat and I haven't had a chance to investigate
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/e40fd952-8df5-495c-ab1c-6ca41bcd4e36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+unsubscribe@googlegroups.com.