next-helios-fe 1.10.16 → 1.10.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.10.16",
3
+ "version": "1.10.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -140,13 +140,14 @@ export const Select: React.FC<SelectProps> = ({
140
140
  />
141
141
  </div>
142
142
  </div>
143
- {rest.required && tempValue && (
143
+ {!rest.required && tempValue && (
144
144
  <button
145
145
  type="button"
146
146
  className={`p-1 rounded-full text-xl hover:bg-secondary-light ${
147
147
  !openDropdown && "hidden group-hover:block"
148
148
  }`}
149
- onClick={() => {
149
+ onClick={(e) => {
150
+ e.stopPropagation();
150
151
  setTempValue("");
151
152
  if (rest.onChange) {
152
153
  rest.onChange({