Skip to content

Commit 025e409

Browse files
committed
Merge pull request #16 from gopherjs/feature/select-share-url-box-on-focus
playground: Select entire URL when share-url text box is clicked/focused.
2 parents cc46515 + cf3673b commit 025e409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playground/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<input type="button" value="Run" ng-click="run(false)" />
1414
<input type="button" value="Format" ng-click="format()" />
1515
<input type="button" value="Share" ng-click="share()" />
16-
<input type="text" class="show-share-url-{{showShareUrl}}" id="share-url" value="{{shareUrl}}" />
16+
<input type="text" class="show-share-url-{{showShareUrl}}" id="share-url" value="{{shareUrl}}" onfocus="select()" />
1717
<label><input ng-model="showGenerated" type="checkbox" />Show generated code for main package</label>
1818
</span>
1919
</div>

0 commit comments

Comments
 (0)