Coder Social home page Coder Social logo

Comments (7)

vamcs avatar vamcs commented on July 17, 2024

I think this PR #32 would fix this and the issue #31 describes the same problem (or at least a similar one)!

from sanity-plugin-tabs.

azzlack avatar azzlack commented on July 17, 2024

Could you try with v2.0.3 and see if it works?

from sanity-plugin-tabs.

ajereos-circadence avatar ajereos-circadence commented on July 17, 2024

it does work when the value of hidden is a boolean but not as a function

from sanity-plugin-tabs.

Mcdonamj087 avatar Mcdonamj087 commented on July 17, 2024

Hello! I'm running into this exact issue and i use the heck out of tabs plugin. The callback won't fire, but passing a boolean does hide the field. Is there any fix for this in progress? Running Sanity v2.27.1 with sanity-plugin-tabs v2.0.3.

Workaround for now is to create another object where i want to use the conditional field, then reference that object within the object that is using Tabs to separate the fieldsets. Works just fine in this context. The downside of this is an additional layer of nesting in my data structure.

from sanity-plugin-tabs.

gtwebsite avatar gtwebsite commented on July 17, 2024

@Mcdonamj087 Dont bother, this should be deprecated. Sanity already has this feature, called Field Groups https://www.sanity.io/docs/field-groups

from sanity-plugin-tabs.

azzlack avatar azzlack commented on July 17, 2024

@Mcdonamj087 As @gtwebsite states, Sanity now includes this functionality as of 2.24.0. I will continue to do some maintenance on this plugin for people still using it, but everyone should migrate to the built-in feature. :-)

I have just released v2.1.0 of this plugin, not sure if it solves your issue but you can upgrade and see.

from sanity-plugin-tabs.

mornir avatar mornir commented on July 17, 2024

@azzlack Migration to Field Groups was easy. A big thank you for this plugin! It has served me well and has always worked flawlessly! ❤

from sanity-plugin-tabs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.