easysoft / easysoft/zui

zui 1.10 .0下拉选择器在 input-group 中显示有问题

Open
#196 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.8k
Forks
678
Avg merge
6d 21h
Merged PRs (30d)
7

Description

未下拉时显示正常:
image

显示下拉选项时不对:
Screen Shot 2022-02-26 at 19 39 19

源码如下:
<div class="form-group"> <label class="col-sm-2">Customer</label> <div class="col-sm-10"> <div class="input-group"> <select class="form-control picker-select" name="apiCustomerType"> <option value="">Partner</option> <option value="1">Company</option> </select> <span class="input-group-addon fix-border fix-padding"></span> <select id="apiFormCustomerList" class="form-control picker-select" data-drop-width="100" name="apiCustomer"> <option value="1">...</option> </select> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="icon icon-plus"></i></button> </span> </div> </div> </div>

JS 初始化下拉选择器:
$('select.picker-select').picker({ ... })

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the provided input-group markup and the $('select.picker-select').picker(...) initialization, comparing the closed and expanded dropdown states shown in the screenshots. Trace the picker implementation and its interaction with input-group elements; done means the dropdown renders correctly while preserving the grouped controls.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.